On Fri, Feb 20, 2009 at 05:11:31PM +0100, TSa wrote:
> I'm unsure if the method dispatcher still falls back to subs,
It doesn't do that anymore, as it happens. You mark methods with "is
export" if you want that, and they automatically show up as both multis
and methods in any lexical scope that u
HaloO,
Daniel Ruoso wrote:
Em Sex, 2009-02-20 às 11:19 +1100, Timothy S. Nelson escreveu:
if(! defined($footree.root)) { warn "Unrooted tree"; }
There are some other very interesting possibilities:
unless ($footree.can(root)) { warn "Unrooted tree"; }
or even better
unless ($fo
Em Sex, 2009-02-20 às 11:19 +1100, Timothy S. Nelson escreveu:
> if(! defined($footree.root)) { warn "Unrooted tree"; }
There are some other very interesting possibilities:
unless ($footree.can(root)) { warn "Unrooted tree"; }
or even better
unless ($footree ~~ RootedTree) { warn "Unr
On IRC, ruoso wrote:
wayland, one important thing I didn't mention in the mail is that I
understand that if some attribute is going to be undefined for some cases in
a Role, then it doesn't belong in that role, but in a more specialized
one...
the good thing about roles is that they don't r