Posted on 2006-01-18 17:25:25-08 by je44ery in response to 1637
Re: :Restricted methods imported into child classes?
Thanks. I already know about Exporter. The problem lies in how to use it. To import these functions, I'd have to do this:
package ChildClass; use ParentClass qw(&_func);

But to use Object::InsideOut properly, I should be doing this:
package ChildClass; use Object::InsideOut qw(ParentClass);

So the two uses conflict with each other. This has made me question my design a bit. It doesn't *seem* wrong to want these private/restricted functions to be available in child classes without fully qualifying the name space. However, I'm not as versed in Perl OO (or general OO) as yourself. I'm not asking for a Perl OO tutorial, but if you could tell me whether my approach is all wrong or not would be appreciated.

This module has been a lifesaver for me. Thanks for all the work.
Direct Responses: 1640 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.