Name shadows another variable error
jhj at jhj.com
Wed Nov 13 20:31:33 EST 2013
I tried your recipe and did NOT get the error. Mac OSX 10.6.5, LC 6.1.3 community. I certainly have had problems with the shadow error in the past, probably with LC 6.1 or so. I also have GLX2 loaded now but was not using it for this test.
On Nov 13, 2013, at 5:05 PM, Peter Haworth <pete at lcsql.com> wrote:
> I think I have just found a reliable way to reproduce the above error.
> It's not the usual circumstance it happens but it may be enough for RunRev
> to track it down. Here's what I did (by accident):
> Switch Strict Compilation mode off
> Create a stack with a few controls on it
> Put some simple scripts in the card, stack and/or controls, each with a
> local statement that names the same variable, say tVar.
> Compile all the scripts so there are no errors in them
> Switch Strict Compilation Mode on
> Make a change in one of the scripts and compile it - you should get the
> error. If you then try to save the stack, all the scripts that name the
> variable will be get a red dot in their script editor window tab.
> If anyone has a few minutes to verify this, I will submit a QCC report and
> include a test stack.
> lcSQL Software <http://www.lcsql.com>
More information about the Use-livecode