mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
const global values can reference each other
Before, if you did something like: ``` const hi1 = "hi"; const hi2 = hi1; ``` This would create the "hi" data twice in the built object. But since the value is const we don't have to duplicate the data, now we take advantage of this fact. closes #336
This commit is contained in:
parent
d6b01931ef
commit
2dfb1ebee2
8 changed files with 160 additions and 84 deletions
Loading…
Add table
Add a link
Reference in a new issue