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

Re: easier duck typing in .can

Thread Previous
Yuval Kogman
June 18, 2006 04:17
Re: easier duck typing in .can
Message ID:
On Sun, Jun 18, 2006 at 18:08:00 +1200, Sam Vilain wrote:

> Why would you not use .does or .isa there?  Are you wanting this
> to go through all of the Class/Role's methods and check that the
> $object.can() them?

Because if you don't control $object's class you can't change it.

  Yuval Kogman <>  0xEBD27418

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