Re: Name shadows another variable

2014-06-29 Thread Peter Haworth
On Fri, Jun 27, 2014 at 7:08 PM, Mark Wieder wrote: > If you at some time in the past turned on variable preservation and > had a script variable of the same name you are now using for a handler > variable, then that variable scope is still stored with the stack. > Until you can compile the scrip

Re: Name shadows another variable

2014-06-28 Thread Peter Haworth
On Fri, Jun 27, 2014 at 7:08 PM, Mark Wieder wrote: > So... ensure that variable preservation is unchecked, change the name > of the variable to something without a conflict, compile the script, > and save the stack. I think that should clear up the problem for this > stack. Since I never use var

Re: Name shadows another variable

2014-06-27 Thread Jerry Jensen
On Jun 27, 2014, at 7:08 PM, Mark Wieder wrote: > Pete- > > Friday, June 27, 2014, 9:31:20 AM, you wrote: > >> A full description is in my QCC report number 10511 > > Having now read the bug report (*very* interesting reading) my > thinking is that this may well be connected to variable preser

Re: Name shadows another variable

2014-06-27 Thread Mark Wieder
Pete- Friday, June 27, 2014, 9:31:20 AM, you wrote: > A full description is in my QCC report number 10511 Having now read the bug report (*very* interesting reading) my thinking is that this may well be connected to variable preservation rather than explicitVars, even if you don't currently have

Re: Name shadows another variable

2014-06-27 Thread Peter Haworth
Hi Craig, The error message "name shadows another variable" is shown as when strict compile mode is on. It's supposed to indicate that the name of a declared variable has already been declared somewhere else in the script, perhaps with another local statement in the same script/

Re: Name shadows another variable

2014-06-27 Thread Alex Tweedly
On 27/06/2014 06:43, Peter Haworth wrote: Bottom line is, this shouldn't happen, there should be no need for any workaround. A recent thread talked about "paper cuts". For me this is an open, festering wound! I absolutely agree. And it's been festering for a long time. One annoying thing ab

Re: Name shadows another variable

2014-06-26 Thread Peter Haworth
the dictionary is to not mess with that one. > > > On Thu, Jun 26, 2014 at 5:54 PM, wrote: > > > Peter, > > > > > > Can you tell me more about what this error is and does? > > > > > > Craig > > > > > > > >

Re: Name shadows another variable

2014-06-26 Thread Mike Bonner
On Thu, Jun 26, 2014 at 5:54 PM, wrote: > Peter, > > > Can you tell me more about what this error is and does? > > > Craig > > > > -Original Message- > From: Peter Haworth > To: How to use LiveCode > Sent: Thu, Jun 26, 2014 5:12 pm > Subject:

Re: Name shadows another variable

2014-06-26 Thread dunbarx
Peter, Can you tell me more about what this error is and does? Craig -Original Message- From: Peter Haworth To: How to use LiveCode Sent: Thu, Jun 26, 2014 5:12 pm Subject: Name shadows another variable The above error has been flagged intermittently and incorrectly when

Name shadows another variable

2014-06-26 Thread Peter Haworth
The above error has been flagged intermittently and incorrectly when compiling a script with Strict Compilation Mode turned on for as long as I've been using Livecode. In the last couple of days, the error has been flagged every time I compile a script in one particular application. I restart Liv