Function pointers for methods
BlitzMax Forums/BlitzMax OpenGL Programming/Function pointers for methods Oops, wrong forum..sorry guys. if you have the answers..feel free to reply :).
You can't.
yeah, i see. I don't think that'll due though. I'll have to create wraps of all my functions then..or least ones i think i want pointers to work for.
People mention the program will crash if you nullify the object ref and the fnc pointer is called..i don't see what the big deal is..just keep up with it in code or else.
People mention the program will crash if you nullify the object ref and the fnc pointer is called..i don't see what the big deal is..just keep up with it in code or else.
The problem is that it would become far slower to track method pointers for all methods as well not only the ref counter for the object itself. (actually not even this is fully implemented as no root references exist)