Function pointers

BlitzMax Forums/BlitzMax Beginners Area/Function pointers

Here's a brief example of using function pointers:

Local TrigFunction!( x! )

TrigFunction = Sin
Print TrigFunction( 0.0 )

TrigFunction = Cos
Print TrigFunction( 0.0 )


I'm unsure of how to get the address of a function. Casting the function pointer to Byte Ptr doesn't work.