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
Millfork does not support declaring new variables inside of macros. What is the reasoning behind that? Are there non-trivial issues with collisions that don't occur in "normal" scopes (I'm assuming the primary concern is the variable scope extending beyond the macro)?
Regardless of the answer here, can we get errors on variable declaration within macros? I have hit several scenarios where I forgot about variable declarations when converting a function to a macro, and using the newly declared variable results in the opaque error Exception in thread "main" millfork.env.UndefinedIdentifierException: Variable `variable` is not defined, which doesn't give a clear indication of where the usage exists.
The text was updated successfully, but these errors were encountered:
Millfork does not support declaring new variables inside of macros. What is the reasoning behind that? Are there non-trivial issues with collisions that don't occur in "normal" scopes (I'm assuming the primary concern is the variable scope extending beyond the macro)?
Regardless of the answer here, can we get errors on variable declaration within macros? I have hit several scenarios where I forgot about variable declarations when converting a function to a macro, and using the newly declared variable results in the opaque error
Exception in thread "main" millfork.env.UndefinedIdentifierException: Variable `variable` is not defined
, which doesn't give a clear indication of where the usage exists.The text was updated successfully, but these errors were encountered: