Reverse a list

Peter M. Brigham pmbrig at gmail.com
Mon Feb 16 21:06:10 EST 2015


Right. Back to the original version, a command, with referenced list.

-- Peter

Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig

On Feb 16, 2015, at 7:19 PM, Alex Tweedly wrote:

> You were right first time ....
> 
> if you use a reference, then there is no copy created when you do the call; and then you build up the output list.
> 
> without the reference, there is an initial copy and then you additionally build the  output list.
> 
> So using a reference parameter saves the memory for one copy (plus the cpu to create the copy).
> 
> -- Alex.




More information about the use-livecode mailing list