1.18 Release
************
...
The compiler no longer allows you to create a pointer to an object via VarPtr (this was always supposed to be the case, but somehow it got overlooked!). Therefore, 'Object Ptr' (or ' Ptr' etc) is no longer accepted. This is because there is not any safe way to write to such a pointer without massively confusing garbage collection/detection. It is still legal to convert an object reference to a 'Byte Ptr', but you should be aware the pointer will only be valid while the object remains 'in scope'.
so...
Type TPXData Field data1:Byte=100 Field data2:Byte=50 EndType Local data:TPXData=New TPXData Local dataPtr:Byte Ptr=Byte Ptr(data) For Local nn:Int=0 To 20 Print dataptr[nn] Next
but converting them back is a problem