by reference parameters

Dar Scott dsc at swcp.com
Wed Sep 17 20:06:01 EDT 2003


On Wednesday, September 17, 2003, at 06:21 PM, erik hansen wrote:

> what are @params?

These are parameters marked with an @ sign in declaration to show that 
a reference to a variable is passed instead of the value of an 
expression, which may be an expression.

The @params is just a shorthand for something like "reference 
parameters".

You can find more under "@" in the transcript dictionary.

When a handler or function is called the parameter for an ordinary 
parameter is copied into what is effectively a local variable in the 
called handler or function.  However, the parameter for a reference 
parameter must be a variable and the name in the called handler or 
function is an alias for that.

Dar Scott




More information about the use-livecode mailing list