The long answer on when to use a function vs command

Ian Wood revlist at
Wed Mar 15 14:24:52 EST 2006

On 15 Mar 2006, at 19:21, Jeanne A. E. DeVoto wrote:
> Think about it like this: what's the routine's main purpose in  
> life? Is it to do something, or to return a value? It sounds like  
> setting the object info would mainly exist to do something - set a  
> property, perhaps - so it ought to be a command.
> -- 
> jeanne a. e. devoto ~ revolution at

That's pretty much my take on it as well - anything that returns a  
value gets written as a function, anything else as a regular handler.


More information about the Use-livecode mailing list