develooper Front page | perl.perl6.internals | Postings from August 2004

Re: Something to ponder

Thread Previous | Thread Next
Dan Sugalski
August 18, 2004 12:10
Re: Something to ponder
Message ID:
At 11:33 AM -0400 8/18/04, Aaron Sherman wrote:
>On Wed, 2004-08-18 at 10:06, Dan Sugalski wrote:
>>  Yep, though the error dispatch case is definitely the easy one. Where
>>  it gets fun is:
>>      sub foo :come_from('bar', int) {
>You've created an MMD come-from....
>Uh... that hurts.

Yes, but imagine the possibilities! Especially when you consider that 
all the basic operators are really doing function calls, so doing 
basic math could redispatch somewhere else.

     sub foo :come_from('+', int, int) {}

for example. Action at a distance has *nothing* on that...

--------------------------------------it's like this-------------------
Dan Sugalski                          even samurai                         have teddy bears and even
                                       teddy bears get drunk

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About