0
Fork 0
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:
Andrew Kelley 2017-05-26 23:31:38 -04:00
commit 2dfb1ebee2
8 changed files with 160 additions and 84 deletions