pass by reference with multiple parameters?

Dar Scott dsc at swcp.com
Sun Jul 13 20:34:00 EDT 2003


On Sunday, July 13, 2003, at 07:09 PM, Alex Rice wrote:

> on testByReference @pVal1, pVal2
>   answer pVal1
>   answer pVal2
> end testByReference
>
> Is this valid transcript? I get no errors, but pVal2 seems to get  
> thrown out.

Looks good to me.

This works:

on mouseUp
   put 5 into x
   testIt x, 6
end mouseUp

on testIt @a, b
   put a && b
end testIt

I remember something about answer-answer not working as expected on  
some platforms.  Try a wait in between.

Dar
************************************************************************ 
****
   Dar Scott Consulting    http://www.swcp.com/dsc/    Programming  
Services
************************************************************************ 
****




More information about the use-livecode mailing list