# Add read-only, non-allocating Int for internal constants · gitcafe/zig

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

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

Visibility: public

Requested revision: ea1d2a240956b2b25d945d361fd274e67ec7849c

Requested commit: ea1d2a240956b2b25d945d361fd274e67ec7849c

Commit: ea1d2a240956b2b25d945d361fd274e67ec7849c

Tree: 0a2d39b6b4d1d2cc96053e39b57bde9abc9181b6

Author: Marc Tiehuis

Committer: Marc Tiehuis

## Message

```
Add read-only, non-allocating Int for internal constants

A constant Int is one which has a value of null for its allocator field.
It cannot be resized or have its limbs written. Any attempt made to
write to it will be caught with a runtime panic.

```

## Parents

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

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