# stage2: elemPtr for slices · gitcafe/zig

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

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

Visibility: public

Requested revision: 09c7d5aebc4f7fe96a89f93c0cf99cc03977ea5f

Requested commit: 09c7d5aebc4f7fe96a89f93c0cf99cc03977ea5f

Commit: 09c7d5aebc4f7fe96a89f93c0cf99cc03977ea5f

Tree: 7877d79040b38f43aea7fc192546b19d07821bc0

Author: Robin Voetter

Committer: Robin Voetter

## Message

```
stage2: elemPtr for slices

* Restructure elemPtr a bit
* New AIR instruction: slice_elem_ptr, which returns a pointer to an element of a slice
* Value: adapt elemPtr to work on slices

```

## Parents

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

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