# stage2: implement array literal with explicit type · gitcafe/zig

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

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

Visibility: public

Requested revision: 76335bc7badd41af0ebb7dd196e1550d7e99d8e7

Requested commit: 76335bc7badd41af0ebb7dd196e1550d7e99d8e7

Commit: 76335bc7badd41af0ebb7dd196e1550d7e99d8e7

Tree: 4057c1def983d9ea39d67e617e52820fed61331f

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: implement array literal with explicit type

New ZIR instruction: elem_ptr_imm
This saves some memory for array literals since the element indexes are
communicated as immediate values rather than as references to other ZIR
instructions.

```

## Parents

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

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