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
Literals are implicit clone statements, so if a property is attached to the proper prototype, the literal should be able to access it. None seem to work. int literals throw a scope error. string literals throw a syntax error.
I think it should be a syntax error to do literal.property simply because of the double data type. Parentheses around a literal should work, however. There are two root problems here:
dots are treated as part of an identifier, not an expression.
the interpreter seems to just throw out expressions that are not assigned to anything.
Dots will have to become an expression somehow. It will require a massive rethinking in ScopeManager. It may make the logic simpler though.
The text was updated successfully, but these errors were encountered:
Literals are implicit clone statements, so if a property is attached to the proper prototype, the literal should be able to access it. None seem to work.
int
literals throw a scope error.string
literals throw a syntax error.I think it should be a syntax error to do literal.property simply because of the double data type. Parentheses around a literal should work, however. There are two root problems here:
Dots will have to become an expression somehow. It will require a massive rethinking in ScopeManager. It may make the logic simpler though.
The text was updated successfully, but these errors were encountered: