Type of..

BlitzMax Forums/BlitzMax Programming/Type of..

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.

Yes, all true, but doing this:-

string = string + "a"

is no different to doing this:-

ptr = Byte Ptr( obj )
obj = anotherObj

Now the original object is due for garbage collection and ptr is going to be pointing at something that may or may not be there. It's just about being careful when you use pointers.

I think that Byte Ptr( string ) should be allowed just like any other object. It's about flexibility and most of all consistency.