in reply to Re: Idea on a Base class API
in thread Idea on a Base class API
package Foo; use BaseClass; @ISA=qw(BaseClass); Foo->define_attributes( attrib1 => 'NUM', ); package Bar; use Foo; @ISA=qw(Foo); Bar->define_attributes( attrib2 => 'NUM', );
Bar would now have two attributes - attrib2 and attrib1. This would be a full implementation of the is-a style hierarchy, something lacking in the native Perl language.
I'm not looking to create a struct ... I know that's out there and probably done much better than I ever could. However, what I am looking to create is something that would give a solid OO foundation to someone who wants to use it, but doesn't want to re-invent the wheel.
I don't know ... something that maybe does private, friends, shared, public, etc. I'm not quite sure on how far to take this, or even if this would be well-received by the Perl community. This would be my first modules, so I wanted to start a discussion on PM first, to see what people thought of both the idea in general and my idea in specific.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Idea on a Base class API
by bikeNomad (Priest) on Jun 13, 2001 at 03:14 UTC |