Bug or just something you can't do ?

Bob Sneidar bobs at twft.com
Mon Oct 1 12:40:03 EDT 2012


No because you are passing a reference, not the value itself. That is how the otherwise sandboxed command knows about the variable t outside itself. It would otherwise create an entirely new t if you didn't pass by reference. It's my understanding that presently you cannot pass an array element by reference. You can only pass the entire array. 

Instead try passing the entire array, then checking inside your command to see if it is an array and then act accordingly. 

Bob


On Sep 30, 2012, at 4:31 PM, Alex Tweedly wrote:

> So doesn't
>   increment t
> become
>  increment (the value of t)





More information about the use-livecode mailing list