Skip to content

fix: local/global variable redefinitions now cause syntax errors#438

Merged
ckirsch merged 2 commits into
cksystemsteaching:mainfrom
GGBOIH250:fix-variable-redefinition
Jun 5, 2026
Merged

fix: local/global variable redefinitions now cause syntax errors#438
ckirsch merged 2 commits into
cksystemsteaching:mainfrom
GGBOIH250:fix-variable-redefinition

Conversation

@GGBOIH250

Copy link
Copy Markdown
Contributor

fixed a TODO on line 4574 previously in selfie.c which mentions about checking local variable redefinitions as well. Now both local and global variables cannot be redefined similar to C.

GGBOIH250 and others added 2 commits June 1, 2026 11:37
Drop the single quotes around the identifier and use %lu with the
'in line' phrasing to match print_line_number and selfie's other
syntax-error messages (e.g. '%s undeclared', 'procedure %s undefined').

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ckirsch

ckirsch commented Jun 4, 2026

Copy link
Copy Markdown
Member

@GGBOIH250 just pushed a minor style update, after having Claude check impact on the rest of the system.

@ckirsch ckirsch merged commit e1e0798 into cksystemsteaching:main Jun 5, 2026
4 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