Declaring Variables

Dar Scott dsc at
Mon Nov 27 19:49:04 EST 2006

(Nice summary on declaring variables, Jan)

On Nov 27, 2006, at 2:35 PM, Jan Schenkel wrote:

> the compiler
> may even decide that the default
> value of that variable is the same as the name of the
> variable.

Note that the default value does not mean the same as initial value.

Without declaration:  A name (used like a variable) will mean a  
literal string containing that name in a script up until the line in  
the script where it is used as a destination.  Starting at that line  
(and including that line) the name will mean a variable with the  
initial value of empty.  Those are compiler lines, not executed lines.

So you can use it as a literal or as a variable, but it you use it  
both ways, it can be confusing.


More information about the Use-livecode mailing list