I just tried this little code snippet and found out that the values are being sent (or received) wrong when using CallFunctionFast on a Procedure pointer.
Code: Select all
Procedure MyFunction(interpolation.f, secondVal.f)
Debug "Interpolation:"+interpolation+" SecondVal:"+secondVal
EndProcedure
Global *funcPointer = @MyFunction()
CallFunctionFast(*funcPointer, 0.12345, 2,34567)
The values i am getting displayed in the debug window are: Interpolation:0 SecondVal:0.0000327568
If I change parameter types of MyFunction to be integer, it works fine.