develooper Front page | perl.perl6.language | Postings from July 2006

Re: Run time dispatch on ~~

Thread Previous
From:
Dr.Ruud
Date:
July 14, 2006 13:17
Subject:
Re: Run time dispatch on ~~
Message ID:
20060714201654.23097.qmail@lists.develooper.com
Larry Wall schreef:
> Dr.Ruud:
>> Aaron Sherman:

>>>  $_ ~~ $x
>>
>> Can that be written as ".~~ $x"?
>
> No, but you might just possibly get away with writing:
>
>     .infix:<~~>($x)
>
> assuming that the $_.foo($x) SMD eventually fails over to foo($_,$x)
> MMD. But that doesn't seem to be much of an improvement over "when
> $x".

OK, thanks. Is it ever useful for an SMD to fail over to MMD?

-- 
Affijn, Ruud

"Gewoon is een tijger."



Thread Previous


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