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
{{ message }}
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.
I definitely think the compiler should raise an error here, duplicate label definitions should not be allowed. Huff also won't throw an error if you accidentally declare a duplicate label as so:
In the example above, the loop label of INNER macro will be confused with that of the OUTER, but they could perhaps be handled within the scope of the macro that they are referenced in, or a macro-specific suffix/prefix could be added to labels to get that scoping effect maybe?
NOTE: This cost me so many hours during the huffathon 🥲
Huff (v0.3.2) allows one to place multiple destinations for the same label:
It apparently chooses the position of the last one as the jump target, as seen by the runtime code (result of
huffc -r
) of the code above:Although an unlikely bug, it would do no harm to catch this bug at compile time.
The text was updated successfully, but these errors were encountered: