On Fri, Jan 28, 2011 at 09:29:04PM +0100, Zbigniew Lukasiak wrote: > Are there any sane options for building Moose::Roles out of Non Moose classes? > > Or maybe it is trivial?
The thing about roles is they aren't instantiated, so you can't really do: package MyApp::Role::Foo; use base 'Some::Other::Class'; use Moose::Role; ...because there is no way to call up the inheritance tree to get at methods in Some::Other::Class. However, if you imported functions from that class into your role, you can make them available in your role just the same as if you had implemented them into your role itself. Perhaps can you describe an example of what you want to do? -- "Historic continuity with the past is not a duty, it is only a necessity." - Oliver Wendell Holmes, Jr. . . . . . Karen Etheridge, ka...@etheridge.ca GCS C+++$ USL+++$ P+++$ w--- M++ http://etheridge.ca/ PS++ PE-- b++ DI++++ e++ h(-)