Function pointers for methods

BlitzMax Forums/BlitzMax OpenGL Programming/Function pointers for methods

You would need to do it this way:

Type Tight

	function ActionWrap(entity:object)
	        Tight(entity).Action
        end function

        Method Action()
		Print "Action packed!"
	
	End Method

End Type 



Local WhatIsIt(entity:object) 

ItIs:Tight = New Tight

WhatIsIt = Tight.ActionWrap
WhatIsIt(ItIs)


WaitKey()

End