Global Madness
Dan Shafer
revdan at danshafer.com
Tue Mar 22 01:58:19 EST 2005
This sounds like what I've confirmed. If so, it's a bug and needs to be
reported.
Dan
On Mar 21, 2005, at 10:15 PM, Dr.John R.Vokey wrote:
> I have encountered this bug quite frequently, usually (but not always)
> when I *add* a new global to a list of existing globals. For example,
> if I have a set of globals used from card to card at the top of each
> card script, e.g.,:
>
> global a,b,c
>
> and on a particular card I *add* another global, e.g.,:
>
> global a,b,c,d
>
> then d often is undeclared (i.e., not even empty)
>
> Two cures, but only one works absolutely:
>
> 1. put the new global on a new global line:
> global a,b,c
> global d -- sometimes still fails
>
> 2. before using in the first cd script put some value (e.g., 0) into
> the new global:
>
> put 0 into d -- fix global bug
>
> in this latter case, d now functions correctly as a true global
>
> --
> John R. Vokey, PhD
> Professor
> B.E.R.G. - Behaviour and Evolution Research Group
> Micro-Cognition Laboratory
> Department of Psychology & Neuroscience
> University of Lethbridge
> Lethbridge, Alberta T1K 3M4
> CANADA
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list