Strange compilation behavior

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jeanvouillon
Posts: 21
Joined: Sat Jan 15, 2011 6:40 pm

Strange compilation behavior

Post by jeanvouillon » Mon Mar 04, 2013 5:10 pm

Hi,
I have students working with LiveCode 5.5.4 on MacOSX.
For a couple a days one of them get this message:

compilation error at line 25 (Chunk: can't create a variable with that name (explicitVariables?)) near "posX", char 45

It's like if it was no more possible to affect a value to a local variable (no problem with global variable)
I even tried some very basic stack with nothing except a single handler with something like "put 1 into "dummy" " and it does'nt work neither...

Last thing: the stack works on others computers...

Any ideas?

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: Strange compilation behavior

Post by sturgis » Mon Mar 04, 2013 5:14 pm

On the machine in question, open the livecode preferences. Click on the left to bring up the pane for the script editor. See if there is a check in the "strict compilation" mode box. If there is take it out. If the check is in that box, all variables must be explicitly declared or the engine will complain.

Its possible this was done in code also, but since the stack works on other machines it is most likely not set in the script of the stack.

jeanvouillon
Posts: 21
Joined: Sat Jan 15, 2011 6:40 pm

Re: Strange compilation behavior

Post by jeanvouillon » Mon Mar 04, 2013 5:30 pm

Wow, great! It's working! I haven't noticed this option.
And thanks for this light speed response! :-)

Post Reply