Skip to content

feat(codegen): Fold constants to ints with int() special function#42

Merged
Dinnerbone merged 1 commit intomainfrom
int_cast
May 9, 2026
Merged

feat(codegen): Fold constants to ints with int() special function#42
Dinnerbone merged 1 commit intomainfrom
int_cast

Conversation

@Dinnerbone
Copy link
Copy Markdown
Owner

It looks like this is the only cast that seems to be folded; number("1") and string(1) always generate opcodes.

@Dinnerbone Dinnerbone merged commit f615a57 into main May 9, 2026
2 of 4 checks passed
@Dinnerbone Dinnerbone deleted the int_cast branch May 9, 2026 22:59
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.

1 participant