"method"-pointer

BlitzMax Forums/BlitzMax Programming/"method"-pointer

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.

I assume that the overhead for the GC when it had to handle exact pointers for the object in memory (which would be needed for method pointers) would have been too large ...

But theoretically you could fake it using TMap to save the object (and find it again in acceptable speed) and using a function to which you give the object and a the needed data to get the method and execute it.