Problem with declaring local variables

Rob Cozens rcozens at pon.net
Thu Jun 8 10:18:53 EDT 2006


Hi Peter,

> If a variable is not declared outside a handler, it is assumed to be a 
> handler local variable and reinitialized every time the handler is 
> called.
>

I stand corrected...

though in that case there is absolutely nothing to be gained by 
declaring a handler local variable unless one uses explicitVariables.

Rob Cozens
CCW, Serendipity Software Company

"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."

from "The Triple Foole" by John Donne (1572-1631)




More information about the use-livecode mailing list