On Mon, 29 Oct 2001, Michael G Schwern wrote:

> On Tue, Oct 30, 2001 at 11:27:39AM +1100, Damian Conway wrote:
> > The $64K question then being: can I call it like so:
> > 
> >     ($obj1, $obj2)->foo(@args);
> 
> Is that merely sugar for:
> 
>     # errr, $_.foo(@args) ?
>     $_->foo(@args) foreach($obj1, $obj2);
> 
> or is there something more interesting going on?
> 
> Maybe we need a method call hyperoperator.  I didn't just say that.
> 
> 
> > PS: I'd just like to point out that people gasped in horror when
> >     I presented this idea at YAPC::NA::2001 as part of the
> >     (soon-to-be-released) Klingon binding of Perl. ;-)
> 
> I'll add my own, now.

Does this mean that the caller of a multimethod has to know he calls a
multimethod (as oposed to a regular method). Should not the user of a
library spared from such implementation details, however sexy they are?


> 
> -- 
> 
> Michael G. Schwern   <[EMAIL PROTECTED]>    http://www.pobox.com/~schwern/
> Perl6 Quality Assurance     <[EMAIL PROTECTED]>             Kwalitee Is Job One
> My breasts are arousing weapons.

-- 
Stéphane Payrard -- s.payrard@@wanadoo.fr

Reply via email to