Pete-

Monday, March 12, 2012, 5:39:16 PM, you wrote:

> I'm not sure whose post you're responding to Bob.  Where do you see
> something that amounts to a statement being passed as a referenced
> parameter?

Here's the problem: a parameter of the form array["key"] is not a
pointer to the "key" element of the array but rather the value stored
in the array. So saying

myArray[myKey] = "hello"
doSomethingWith myArray[myKey]

gives a parameter of "hello" to

on doSomethingWith @arg

You'd have to somehow prevent the dereferencing of myArray[myKey] in
order to pass it by reference.

-- 
-Mark Wieder
 mwie...@ahsoftware.net


_______________________________________________
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