# Sema: introduce separate \`MutableValue\` representation for comptime-mutable memory · gitcafe/zig

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

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

Visibility: public

Requested revision: 5ec6e3036b2772e6efc08726b22c560dedd556bc

Requested commit: 5ec6e3036b2772e6efc08726b22c560dedd556bc

Commit: 5ec6e3036b2772e6efc08726b22c560dedd556bc

Tree: 9c4625688ff540c0cd9bece36bef96276da08842

Author: mlugg

Committer: mlugg

## Message

```
Sema: introduce separate `MutableValue` representation for comptime-mutable memory

Perhaps someday, we will make Sema operate on mutable values more
generally. For now, it makes sense to split out this representation,
since it is only used in comptime pointer accesses.

There are some currently unused methods on `MutableValue` which will
be used once I rewrite the comptime pointer access logic to be less
terrible.

The commit following this one will - at long last - delete the legacy
Value representation

```

## Parents

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

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