-
Notifications
You must be signed in to change notification settings - Fork 4
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
Variables can be redefined without erroring #20
Comments
manually patch in missing variable
Wow, this is weird. It looks like it's getting tripped up because you're defining anyNTAAHead twice (once on line 28, once on line 32). Maybe the second definition is overwriting the first but without updating references to it or something? I don't know why I never accounted for this. Still, the output behaves correctly if you delete the second |
Gosh, I didn't think that was the problem. I didn't notice I had two definitions for the same variable. IMO I think that the expected behavior in this case (if the expected behavior is not an error) would be transitions above the redefinition should use the old definition, and those below would use the new one like a variable in Python. But having the same variable mean two different things in two different places seems very confusing. |
So I finally got Fusion.ruel to compile without errors... but then I checked the output and noticed a problem.
Lines 83-91 of the output reference a variable called
anyNTAAHead.0
, but it was never defined anywhere else in the file, but it was used in the Nutshell file. (It should bevar anyNTAAHead.0 = {7,8}
.)What is causing this and how do I fix it?
The text was updated successfully, but these errors were encountered: