Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added test to check for nil semantics of uninitialized local variables and empty blocks. #54

Merged
merged 2 commits into from
Aug 25, 2020

Conversation

smarr
Copy link
Member

@smarr smarr commented Aug 24, 2020

Local variables can be uninitialized on first access.
At this point, they should have nil as their value.

This is standard Smalltalk semantics, allowing uninitialized access, but ensuring safety by having a well known initial value.

@smarr smarr added the spec Needs specification, or is specification related. label Aug 24, 2020
@smarr smarr changed the title Added test to check for nil semantics of uninitialized local variables Added test to check for nil semantics of uninitialized local variables and empty blocks. Aug 24, 2020
@smarr
Copy link
Member Author

smarr commented Aug 24, 2020

The latest commit also adds a test that empty blocks return nil (#36).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec Needs specification, or is specification related.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant