Fix 076, add 077,078 sentinels and many-item pointers

This commit is contained in:
Dave Gauer
2021-05-08 18:51:08 -04:00
parent 831ee03e32
commit d4f5684450
7 changed files with 126 additions and 35 deletions

View File

@@ -1,8 +1,8 @@
82c82
83c83
< for (???) |s| {
---
> for (my_seq) |s| {
94c94
95c95
< while (??? != my_sentinel) {
---
> while (my_seq[i] != my_sentinel) {

View File

@@ -0,0 +1,4 @@
63c63
< const printable = ???;
---
> const printable = foo.data[0..foo.length];

View File

@@ -0,0 +1,4 @@
24c24
< const printable: [*:0]const u8 = ???;
---
> const printable: [*:0]const u8 = @ptrCast([*:0]const u8, data);