On Mon, 6 Sep 1999, M. Uli Kusterer wrote:

> >Something that's always puzzled me about xTalk development is the lack
> >of interest people seem to have in having their own handlers or
> >externals support an English-like syntax like the built-in commands
> >have.  SuperCard seems to allow this, while HyperCard, OMO, and
> >MetaCard do not.  Even so, I've never seen this listed as one of the
> >advantages of SuperCard over HyperCard.
> 
> Scott,
> 
>  I wasn't aware SC had this. Since what version? What's the syntax?

I don't know other than it works with 3.0.  It's probably been in
there forever.  There is no special syntax other than what I mentioned
about not using built-in operators (which are evaluated).  So, for
example, you could do:

on mouseUp
  myhandler arg1 arg2 arg3
end mouseUp

on myhandler p1, p2, p3
  # do something with those three parameters
end myhandler

In this example, argX can be any words other than built-in operators.
What's interesting is that "myhandler arg1 arg2 is arg3" passes just
two parameters, arg1 and "FALSE" (which is what the expression "arg2
is arg3" evaluates to), meaning it keeps trying to evaluate each term
as a new expression.  All the other xTalks choke on the space after
arg1.
  Regards,
    Scott

> Cheers,
> -- M. Uli Kusterer
> 
> ------------------------------------------------------------
>              http://www.weblayout.com/witness
>        'The Witnesses of TeachText are everywhere...'
> 
> --- HELP SAVE HYPERCARD: ---
> Details at: http://www.hyperactivesw.com/SaveHC.html
> Sign: http://www.giguere.uqam.ca/petition/hcpetition.html
> 
> 

********************************************************
Scott Raney  [EMAIL PROTECTED]  http://www.metacard.com
MetaCard: You know, there's an easier way to do that...

Reply via email to