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

Re: Something to ponder

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
August 18, 2004 12:10
Subject:
Re: Something to ponder
Message ID:
a06110403bd494a4dc6a0@[10.0.1.2]
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...
-- 
				Dan

--------------------------------------it's like this-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                       teddy bears get drunk

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About