# stage2: string literal interning · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/818fbd9c567b907031c44961e4299ce1f9059be6)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 818fbd9c567b907031c44961e4299ce1f9059be6

Requested commit: 818fbd9c567b907031c44961e4299ce1f9059be6

Commit: 818fbd9c567b907031c44961e4299ce1f9059be6

Tree: db185db14c188c6226824b2f865023d9ef7b25e8

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: string literal interning

This is a temporary addition to stage2 in order to match stage1 behavior,
however the end-game once the lang spec is settled will be to use a global
InternPool for comptime memoized objects, making this behavior consistent
across all types, not only string literals. Or, we might decide to not
guarantee string literals to have equal comptime pointers, in which case
this commit can be reverted.

```

## Parents

- [8171972cbb477672ee1a99d953df4aaecb744a0c](https://git.cafe/gitcafe/zig/commit/8171972cbb477672ee1a99d953df4aaecb744a0c?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/818fbd9c567b907031c44961e4299ce1f9059be6?format=markdown)
