Playing around with pointers, why wont this work. Can pointers only be basic object types? e.g. int, float, etc. Is it not possible to create a type ptr?
This seems to work, but is it the only way?
Type test End Type Local t:test = New test Local p:test Ptr = Varptr t
This seems to work, but is it the only way?
Type test Field i:Int = 100 End Type Local t:test = New test t.i = 10 Local p:Int Ptr Local i = HandleFromObject(t) p = Varptr i Local n:test = test(HandleToObject(p[0])) Print n.i