compileIt for Revolution?

Geoff Canyon gcanyon at inspiredlogic.com
Fri Jun 24 09:48:26 EDT 2005


On Jun 24, 2005, at 2:19 AM, Eric Engle wrote:

> on eq @x,y -- note x is by reference
>    put y into x
> end eq
>
> You can use that in the order you asked for like this:
>
> on mouseUp
>    put 0 into b
>    eq b,7
>    put b -- puts 7
>    eq b,b+3
>    put b -- puts 10
> end mouseUp
>
> Does Transcript allow pointers?!?
> If so, big news to me (new in latest engine or something?!?)
> I tested your handler without the pointer symbol (@) and it seemed  
> to work.
>

The @ sign before the variable name implements pass by reference.  
Without it the two puts would both put 0, because the value of b is  
unaffected by the calls. With the @ sign, the first time b is 7, the  
second it is 10.

Granted it's not infix, but it is in the order requested: target,value.


More information about the use-livecode mailing list