var i: uint32 s: seq[byte] p: int s = newSeq[byte]() s.add(0) s.add(1) s.add(0) s.add(0) i = (cast[ptr uint32](addr s[p]))[] echo i
output is 256, maybe not that wrong. But I am still confused, maybe Dom can add a few more pages to his book.
var i: uint32 s: seq[byte] p: int s = newSeq[byte]() s.add(0) s.add(1) s.add(0) s.add(0) i = (cast[ptr uint32](addr s[p]))[] echo i
output is 256, maybe not that wrong. But I am still confused, maybe Dom can add a few more pages to his book.