New issue
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
Inconsistent variable names on instructions with multiple return values #20
Labels
bug
Something isn't working
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usually assigned variables have their positions in the source file as names. However, that is not the case for variables that are outputted by commands with multiple return values like
unitLocate
andunitControl
(this one in a specific function overload).Demonstration
Passing the following input to the compiler results in the following output:
While the expected output is:
I'm sure this has to do with how the macros for those instructions return
ObjectValue
s.One possible solution would be to add a sort "hook" that gets called when an
IValue
gets put into a scope with a name. That way certain types of values can rename their internal name to fit that of the scope variable holding them.The text was updated successfully, but these errors were encountered: