# Pointer Reform: proper slicing and indexing \(\#1053\) · gitcafe/zig

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

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

Visibility: public

Requested revision: e53b683bd3958a7b1c517e2391edce42b9d4e48b

Requested commit: e53b683bd3958a7b1c517e2391edce42b9d4e48b

Commit: e53b683bd3958a7b1c517e2391edce42b9d4e48b

Tree: c9b8aacf92b2140c1cc076e2de280e10657d0a98

Author: Andrew Kelley

Committer: GitHub

## Message

```
Pointer Reform: proper slicing and indexing (#1053)

 * enable slicing for single-item ptr to arrays
 * disable slicing for other single-item pointers
 * enable indexing for single-item ptr to arrays
 * disable indexing for other single-item pointers

see #770
closes #386
```

## Parents

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

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