Compile Error..

BlitzMax Forums/BlitzMax Beginners Area/Compile Error..

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.

no not at all.
If field1 would store an object, then it would be a type safe reference that is handled by the Garbage Collector.

A pointer is something that points to a specific area in the RAM and thats it (which is exactly the problem). It does not enforce that the data has a specific structure, nor is the data given free until you end the program if you forget about it -> risk of memory leak if you don't know what you are doing.
BM luckily dropped pointer support for most pointers ... you can still convert objects to pointers but you will never be able to convert an adress into an Object.