in reply to Re: Detecting an imported function
in thread Detecting an imported function
No, I haven't. Class::Trait is appealing because I am intimately familiar with it and it's a very complete trait implementation including conflict resolution, proper trait composition, enforcement of requirements, method aliasing, reflection, etc. In short, it has everything we need.
Just glancing at your code suggests you might have the same problem that Class::Trait has:
push @methods, map { [ $r, $_ ] } grep { *{"${r}::${_}"}{CODE} } keys %{"${r}::"};
Where do those methods come from? Is there any chance a role might import a function (even as a constant) and have it exported?
Cheers,
Ovid
New address of my CGI Course.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Detecting an imported function
by dragonchild (Archbishop) on Nov 17, 2005 at 14:13 UTC | |
by Ovid (Cardinal) on Nov 17, 2005 at 16:27 UTC | |
by dragonchild (Archbishop) on Nov 17, 2005 at 16:56 UTC | |
by Ovid (Cardinal) on Nov 17, 2005 at 17:30 UTC | |
by dragonchild (Archbishop) on Nov 17, 2005 at 18:06 UTC | |
|