any use of pass by reference breaks any omitted variable?

Bob Sneidar bobsneidar at iotecdigital.com
Mon Nov 24 11:04:49 EST 2014


I think he means that if you have two arguments, one passed by reference and you only provide one argument, it throws an error.

Bob S


On Nov 22, 2014, at 22:01 , dunbarx at aol.com<mailto:dunbarx at aol.com> wrote:

Richard.


Not sure what you mean. In this (variant from the user guide example):



on mouseUp
  put 8 into someVariable
 put 5 into someOtherVariable
  setVariable someVariable,someOtherVariable
  answer "someVariable is now:" && someVariable
end mouseUp




on setVariable @incomingVar, at someOtherVariable
  add 1 to incomingVar
end setVariable


The variable someOtherVariable is not explicitly handled. Obviously I am missing your point.  Where is your handler failing?


Craig




More information about the use-livecode mailing list