-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CRITICAL: Correct copy bug in YamletIfElseLadder; also check super sc…
…opes in name lookup. Fixes an extremely weird error that I had previously been working around by duplicating the result tuple for each new element merged, during a `_CompositeGclTuples` operation. The code had somehow grown to rely on two copies being performed, which kind of screwed up the super mechanism (or at least consumed undue extra memory and left the `super` chain needlessly muddy). The `super` chain is now comparatively neat, fit, and trim. Like me, I guess; I've been taking care of myself. Mostly. Thank you for asking. Also adds checking for said fit and trim super scopes during name lookup, because while all variables in the destination hierarchy should take precedence over variables in the super hierarchy, those scopes should still be fallen back on before hitting module-level globals. It may actually be preferable to hit module-level variables in the current scope before checking them in super, but I'll need a use case first. The remedy there would be to stop treating module globals as special and just give file-scope variables a proper parent. I'll get around to it.
- Loading branch information
1 parent
d650a68
commit 3ac7dc8
Showing
2 changed files
with
184 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters