Newbie... Strict Compilation mode

Stephen Cox stephen at networkxfla.com
Sat May 9 18:04:17 EDT 2009


Force of habit. And there are many languages that require variable checking.
And indeed typing. Like C, C++, C#, VB , Python, JS, AS, ST, Perl, and on
and on. Anyway it's one of Revolution strengths not to requiring variable
typing and creation.


On 5/9/09 4:09 PM, "Richmond Mathewson" <richmondmathewson at gmail.com> wrote:

> 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
>> 
>>   
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list