Per-translation-unit variable indexing #634
Labels
area:compiler
Related to code compilation or type checking
good-first-issue
An issue considered simple enough for new contributors
kind:refactor
Internal changes not affecting the compiler behavior
status:help-wanted
Open for contributors
Originally posted by @ForNeVeR in #617 (comment)
Currently, we have a global static counter,
CurrentIndex
in theCesium.CodeGen.Contexts.VariableInfo
record.Cesium/Cesium.CodeGen/Contexts/VariableInfo.cs
Lines 7 to 11 in f1b5204
I'd like to have some sort of indexing that's tied to the translation unit.
Such a counter is too error-prone: it will easily overflow on 2 billion variables constructed in a single compilation session. Moreover, this construct makes it impossible to copy a
VariableInfo
.The text was updated successfully, but these errors were encountered: