I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2006-01-31 02:23:49-08 by earl in response to 1723
Re: Getting a foreign class pushed onto the @ISA array

Since my understanding of inheritance in Perl is based on using @ISA, I am confused. In an object method invokation, how does an IOC object inherit the PVC methods/subroutines?

The Object::InsideOut section on Foreign class inheritance says ...

One method of declaring foreign class inheritance is to add the class name to the Object::InsideOut declaration inside your package:

package My::Class; { use Object::InsideOut qw(Foreign::Class); ... }

This allows you to access the foreign class's static (i.e., class) methods from your own class. For example, suppose Foreign::Class has a class method called foo. With the above, you can access that method using My::Class->foo() instead.

What about the foreign class's object methods? IMHO, the @ISA array is central to how inheritance works. If the class name is not in the @ISA array, I worry that IOC won't be able to inherit the PVC's methods.

Direct Responses: 1725 | Write a response