Object-InsideOut - Re: :Restricted methods imported into child classes?

Posted on Wed Jan 18 22:18:02 2006 by je44ery in response to 1640 (See the whole thread of 9)
Re: :Restricted methods imported into child classes?
I think that I hit another seeming snag. My version of Exporter doesn't allow this syntax in parent modules / classes:
package YourModule; use Exporter 'import'; # gives you Exporter's import() method directly @EXPORT_OK = qw(munge frobnicate); # symbols to export on request

Therefore, I must use the other syntax, which is:
package YourModule; require Exporter; @ISA = qw(Exporter); @EXPORT_OK = qw(munge frobnicate); # symbols to export on request

But the Object::InsideOut docs say this:
"Object::InsideOut acts as a replacement for the base pragma: It loads the parent module(s), calls their import functions, and sets up the sub-class's @ISA array. Therefore, you must not use base ... yourself, or try to set up @ISA arrays."

What to do now?
Direct Responses: 1652 | Write a response