Skip to content

Add clr and fil support in incremental evaluator before main loop - #698

Merged
ckrause merged 4 commits into
loda-lang:mainfrom
loader3229:main
Jun 20, 2026
Merged

Add clr and fil support in incremental evaluator before main loop#698
ckrause merged 4 commits into
loda-lang:mainfrom
loader3229:main

Conversation

@loader3229

Copy link
Copy Markdown
Contributor

Add clr and fil support in incremental evaluator before main loop

@loader3229
loader3229 requested a review from ckrause as a code owner June 16, 2026 16:55
Comment thread src/eval/evaluator_inc.cpp Outdated
@loader3229
loader3229 requested a review from ckrause June 18, 2026 16:19

@ckrause ckrause left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic is correct overall. A few minor things to clean up before merging, and please also update the CHANGELOG.

Comment thread src/eval/evaluator_inc.cpp Outdated
if (bounds.first == Number::INF || bounds.second == Number::INF) {
if (error_code) {
*error_code = ErrorCode::MEMORY_OP_SOURCE_INVALID;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All three validation failures (non-constant source, infinite bounds, range too large) use MEMORY_OP_SOURCE_INVALID. The last case is semantically different — consider a distinct error code or at least a comment to distinguish it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also see L253-L276

Comment thread src/eval/evaluator_inc.cpp
Comment thread tests/inceval/I032.asm Outdated
@loader3229

Copy link
Copy Markdown
Contributor Author

Changelog is updated

@ckrause
ckrause merged commit 5e08dda into loda-lang:main Jun 20, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants