undeclared variables getting through in Strict Compilation mode

J. Landman Gay jacque at hyperactivesw.com
Mon Feb 16 17:03:44 EST 2015


I'm still not sure what you saw. Maybe if you can post the handler and 
describe what happened again we will spot something.

On 2/16/2015 3:19 PM, Dr. Hawkins wrote:
> On Mon, Feb 16, 2015 at 11:07 AM, J. Landman Gay <jacque at hyperactivesw.com>
> wrote:
>
>> Is the global declared at the top of the script? Are you trying to use a
>> local variable in a handler with the same name as the global?
>>
>>
> no & nope.
>
> There is a single local variable declared outside of any scripts (to flag
> initialization when returning to the mainstack).  No globals declared
> outside of handlers.
>
> These are declared global inside handlers, so declaring them local should
> cause an error with strict compilation.
>
> When I step through, the array gets elements, and they disappear when
> returning to the calling program.
>


-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list