Thanks for the tip, Dick, on using the list of keys.  One can think of arrays 
as nested or multidimensional.

On Mar 10, 2012, at 1:06 AM, Dick Kriesel wrote:
> I agree it'd be good if LC could accept any array reference for invoking a 
> handler that specifies pass-by-reference.

Though is is probably more work, one might also consider chunks in 
pass-by-reference.

Maybe any thing the subtract command can take.

However, this might be a problem:

doSomethingToTheseTwo char 1 to 2 of it, char 2 to 3 of it

command doSomethingToTheseTwo @a, @b
        put "butter" into a
        put "cheese" into b
        put empty into a
end doSomethingToTheseTwo

That might also have a problem with this call:

doSomethingToTheseTwo x, x["t"]

I immagine LiveCode folks can come up with a semantics that makes sense for 
weird cases.  

The subtract command does not have the the problem because it modifies only one 
thing.

Dar


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to