Help, what am I doing wrong???

Dennis Brown see3d at writeme.com
Sun Jul 31 21:39:38 EDT 2005


WHAT!!!!

I would have thought that they would be local by default.
Who would ever guess that they would be global by default.
This is unbelievable  --and dangerous!
Come on now, April 1st was four months ago.

Dennis

On Jul 31, 2005, at 8:08 PM, Mark Wieder wrote:

> A semi-related point that seems to bother nobody but me is that you
> don't have to declare loop variables (i.e., Variable Checking [aka
> explicitVars] doesn't catch them), but if you don't explicitly declare
> them as local then they become global by default, in which case you
> get namespace conflicts. Declaring "local x" when you've already got a
> "repeat for x=1 to 10" line somewhere in your script will cause a
> compiler error at the "local x" line.



More information about the use-livecode mailing list