Closed MovingtoMars closed 8 years ago
While a neat way to handle arbitrary pointer manipulation, we should probably allow size-aware pointer offsetting, most likely by using array index syntax, e.g.:
thing: *Thing;
thing[n] == uintptr(thing) + n*sizeof(Thing)
@kiljacken :+1:
Another TODO.
My idea: Add
uintptr
. You can convert any pointer type touintptr
anduintptr
to any pointer type.