defining and using globals in an application

Bob Sneidar bobs at twft.com
Thu Jul 7 12:11:51 EDT 2011


I don't think it's a bug IMHO. How can a variable in the same script have 2 scopes? How would the app know which you were talking about when you used it? 

Bob


On Jul 7, 2011, at 8:38 AM, Mark Wieder wrote:

> Interesting. I *did* try myself before posting, but I did this in the
> same script:
> 
> on mouseUp
>  global xyzzy
>  local xyzzy
> end mouseUp
> 
> and the compiler properly complains about that. I guess it's not quite
> smart enough to catch this across different scripts. I'd file a bug
> about this, but since I don't use global vars anyway I don't think
> I'll bother.
> 
> -- 
> -Mark Wieder
> mwieder at ahsoftware.net





More information about the use-livecode mailing list