We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@eregon found a bug in the AST inlining. The following test does not result in the correct output:
class Test usingPlatform: platform = Value ( | private Array = platform kernel Array. | )( public main: args = ( | arr b | arr := Array new: 10. args from: 2 to: args size do: [ :arg | arg print. ' ' print ]. 'Correct Semantics' println. b := [ :i | arr at: i put: [ i ]]. 1 to: 10 do: b. 1 to: 10 do: [ :i | (arr at: i) value println ]. 'Broken Semantics' println. 1 to: 10 do: [ :i | arr at: i put: [ i ]]. 1 to: 10 do: [ :i | (arr at: i) value println ]. ^ 0 ) )
The text was updated successfully, but these errors were encountered:
Since this is only a problem in case the lexical scope is captured, a first fix could simply disable the optimization when there is a nested block.
Sorry, something went wrong.
No branches or pull requests
@eregon found a bug in the AST inlining. The following test does not result in the correct output:
The text was updated successfully, but these errors were encountered: