Jim-

Saturday, December 8, 2012, 10:11:31 AM, you wrote:

> But could you tell me how this "mouseUP" handle fails to do the job?

Well, it's not nearly as hard to read, for one thing. But seriously,
the use of lambda functions (google it) can provide a degree of
flexibility in code and help prevent coding errors. For instance, to
add the arctan() to your example you'd have to add a new line to the
option control, then add a new case statement to the switch construct
in the mouseUp handler. Possibly you could make a mistake when cutting
and pasting, forgetting to insert a break statement, etc. Using the
redirected form all you'd need to do is add the new line to the option
control.

-- 
-Mark Wieder
 [email protected]


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to