holey-bytes/hblang/examples/pointers.hb

7 lines
65 B
Plaintext
Raw Normal View History

2024-05-12 04:52:58 -05:00
main := fn(): int {
a := 1;
b := &a;
*b = 2;
return a - 2;
}