by reference parameters

Alex Rice alex at mindlube.com
Wed Sep 17 19:49:01 EDT 2003


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

>
> what are @params?

If you define function or command parameters prefixed with the "@" 
character, the parameters are passed by reference instead of by value. 
This means the handler can modify the actual variable and it means that 
the variable doesn't get copied before being passed to the handler.

function myFunc @parameter
--...
end myFunc

on myCmd @parameter
--...
end Cmd


Alex Rice <alex at mindlube.com> | Mindlube Software | http://mindlube.com

what a waste of thumbs that are opposable
to make machines that are disposable  -Ani DiFranco




More information about the use-livecode mailing list