--- Michael Lazzaro <[EMAIL PROTECTED]> wrote:
> > A lightweight, typedef-like mechanism behaves differently:
> >
> >   class Foo is Bar;
> >   typedef Baz is Bar;
> >
> >   Foo.isa("Baz") == TRUE;
> 
> Ah, I get it.  But why would you want that -- treating Foo and Baz as
> 
> synonymous? 

Treating BAR and BAZ as synonymous. Coincidentally, Foo is Bar.

> Mind you, I'm not really against the idea, I'm just devil's
> advocating 
> -- trying to think whether we really need the feature or whether we 
> just _think_ we need it because we're all used to it from C, when in 
> fact P6 will provide better ways of doing it.  (?)

macro *defmacro($t1, @rest is variadic) is parsed(/<token> <token>+ ;/)
{
  eval "macro *$t1 is parsed(/<null>/) { return @rest.join(' '); }";
}

defmacro Baz Bar;

m4, anyone?

=Austin

Reply via email to