You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like we can improve the semantic analyser to add notice when temps and args use reserved words.
declareVariableNode: aVariableNode as: anOCTempVariable
| name var shadowing |
name := aVariableNode name.
"check if another variable with same name is visible"
shadowing := scope lookupVar: name.
var := scope addTemp: anOCTempVariable.
aVariableNode binding: var.
(shadowing isNotNil and: [ shadowing allowsShadowing not]) ifTrue: [self shadowing: shadowing withVariable: aVariableNode].
^ var
declareTemporaryNode: aVariableNode
^self declareVariableNode: aVariableNode as: (TemporaryVariable named: aVariableNode name)
Activity
Ducasse commentedon Jul 23, 2026
I would expect the following to fail.
Ducasse commentedon Jul 23, 2026
Looks like we can improve the semantic analyser to add notice when temps and args use reserved words.
Ducasse commentedon Jul 23, 2026
same with blocks arg and temps.