Newbie... Strict Compilation mode

Richmond Mathewson richmondmathewson at gmail.com
Sat May 9 16:09:34 EDT 2009


Funny, I've never declared a variable in Runtime Revolution; I thought that
was something that went out with PASCAL: even my BBC doesn't require me
to that in BBC BASIC.  I remember feeling 'odd' when I got my BBC (ah, all
those years ago, out in the desert) that BBC BASIC didn't even need the 
LET statement
anymore.

May be this is a goofy question; but it can probably bear
the asking one more time:

What, if any, is the advantage of declaring variables in RR ?

and, just to show you exactly how goofy I am:

How do you declare variables in RR ?

Mark Wieder wrote:
> Stephen-
>
> Saturday, May 9, 2009, 11:10:46 AM, you wrote:
>
>   
>> Ok I just created a new stack and put:
>>     
>
>   
>> local temp
>> put "1234" into temp
>> put "1234" into kemp
>>     
>
>   
>> And it compiles with no errors. Maybe I missed a checkbox someplace. Is
>> "Strict Compilation Mode" in the Script Editor section the only option that
>> has to be enabled?
>>     
>
> OK - I think I see what you're doing. If I just put that into a script
> then I can compile it with or without strict compilation mode. But
> then there's nothing to execute. I'm not really clear on what is
> getting compiled at that point. I think as far as the compiler is
> concerned there's no code to run, so there's nothing to compile.
>
> Try this:
>
> on mouseUp
>   local temp
>
>   put "1234" into temp
>   put "1234" into kemp
> end mouseUp
>
>   




More information about the use-livecode mailing list