test case for trouble inheriting overload behavior with roles
[email protected] (John Napiorkowski)
| Newsgroups | perl.moose |
|---|---|
| Message-ID | <[email protected]> |
Hi,
Recently I was building a Role that used the overload
module to manage some simple stringify behavior when I
noticed that classes which consumed the role didn't
seem to get the overload behavior.
As discussed on the IRC chat yesterday (from my
timezone at least) I've build a test case for this,
which is attached.
Basically the test case shows how overload works for
inheritance with plain old perl objects, moose
objects, but not for moose objects which do a role.
I'm guessing that this would be an issue for other
modules that work similarly to overload, in that they
create stuff in import that is on the caller
namespace. So this problem might bite others at weird
times.
If anyone more familiar with how Roles do their job
could take a look at the test case and let me know
what they think I would appreciate it. I'm happy to
work on this as well, just need a little mentoring
about where to start.
Thanks!
John Napiorkowski
____________________________________________________________________________________
Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469
roles_overload.tar.gz
(application/x-gzip, 1 KB) - not displayed