Get a handler from a script

Alex Tweedly alex at tweedly.net
Tue Mar 21 05:37:29 EST 2006


I'll answer about the comments separately,when I've had more time  to 
think about it.
But - this one is quick ...

Dick Kriesel wrote:

>
>But tokenizing seems unrelated to the challenge of getting a handler from a
>script, because it can lose the control structure of a handler.  For
>example, consider the following handlers, whose bodies yield the same list
>of tokens:
>
>on a
>  if the seconds mod 2 = 0 then ask the date;ask the time
>end a
>
>on b
>  if the seconds mod 2 = 0 then ask the date
>  ask the time
>end b
>
>  
>
Those two bodies have the *same* meaning.

I suspect you have a different idea for what handler 'a' will do - in 
fact, it *always" ask the time.

To see this more clearly, try

> on mouseUp
>   if true then put "this" after msg; put "that" &cr after msg
>   if false then put "this" after msg; put "that" &cr after msg
> end mouseUp
>

-- 
Alex Tweedly       http://www.tweedly.net



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.6/286 - Release Date: 20/03/2006




More information about the use-livecode mailing list