Subject: | does/DOES fallback |
06:07 < Mithaldu> perl -e 'use Safe::Isa; my $c = {}; $c->$_does( q[moo] ); bless $c, q[ANYTHINGMAYBEEVENANANIME]; $c->$_does( q[moo] )'
06:07 < Mithaldu> Can't locate object method "does" via package "ANYTHINGMAYBEEVENANANIME" at C:/Perl/site/lib/Safe/Isa.pm line 15.
10:58 < xdg> mst, ether: how about if does/DOES fall back to isa unless $obj->can(does|DOES)? Then randomly blessed garbage can just fail isa.
11:00 < ether> makes sense to me
I'll implement if the mst gods give their blessing.