Pointer Types

BlitzMax Forums/BlitzMax Programming/Pointer Types

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Thanks SJB, I thought I heard some where that all pointers are integers, but that casting works the way i wanted.
Angel, this seems to work:
Local p1 Ptr, p2 Ptr, p3 Ptr Ptr

num=1234
str$="asdf"

p1=Int Ptr(VarPtr(num))
p2=Int Ptr(VarPtr(str$))
p3=VarPtr(p2)

p3 has to be an Int Ptr Ptr though which is wierd, since they are both jut pointers to a variable. I guess Int Pointer is like its own type such as int or float, so an Int Ptr needs its own pointer type, int ptr ptr.