Page 1 of 1

CallFunctionFast() question.

Posted: Mon May 06, 2024 6:01 am
by jassing
When using CallFunctionFast() - what does it do behind the scenes?

Code: Select all

Procedure who(ball.s="")
  Debug "has the "+ball
EndProcedure
*p=@who()
CallFunctionFast(*p)       ; not sending anything, so I expect the default parameter to to used ("").
CallFunctionFast(*p,@"") ; this works, but what if you don't know the default, or the default changes?	
the call is assembled to

Code: Select all

integer r0=PB_CallFunctionFast(p0);
I just assumed, no parameters, it would use the default specified in the parameter definition (ball.s="")

Re: CallFunctionFast() question.

Posted: Mon May 06, 2024 6:21 am
by idle
use prototypes much better than call function fast

Re: CallFunctionFast() question.

Posted: Sat May 11, 2024 1:14 am
by jassing
idle wrote: Mon May 06, 2024 6:21 am use prototypes much better than call function fast

ok, thanks.