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
Code without a handler around it in Forge in Webpage-mode and Stacksmith's message box parse into a handler that is set to make all local variables globals implicitly.
This conflicts with how unquoted string literals are implemented right now, which are parsed as local variables initialized with their name. That way, they behave like an interpreter: First, they are an unquoted string literal, but as soon as you put something in them, they get interpreted as a variable (even in a second iteration of a loop where the first one was the unquoted string, and at its end it was suddenly used as a variable).
Globals are initialized to empty strings instead of their names, and therefore unquoted string literals all end up empty. We should see if we can mark implicitly-declared globals as also needing to be initialized to their name.
The text was updated successfully, but these errors were encountered:
Code without a handler around it in Forge in Webpage-mode and Stacksmith's message box parse into a handler that is set to make all local variables globals implicitly.
This conflicts with how unquoted string literals are implemented right now, which are parsed as local variables initialized with their name. That way, they behave like an interpreter: First, they are an unquoted string literal, but as soon as you put something in them, they get interpreted as a variable (even in a second iteration of a loop where the first one was the unquoted string, and at its end it was suddenly used as a variable).
Globals are initialized to empty strings instead of their names, and therefore unquoted string literals all end up empty. We should see if we can mark implicitly-declared globals as also needing to be initialized to their name.
The text was updated successfully, but these errors were encountered: