in reply to Re: (tye)Re: Uses for an lvalue subroutine
in thread Uses for an lvalue subroutine
You use $self->{foo}, of course.
When using inheritance, you don't treat your ancestors as black boxes (well, if you are doing inheritance of APIs, then you do, but Perl doesn't natively support inheritance of APIs anyway).
Of course, if the SuperClass::foo() is very complex or you just want to write an inefficient subclass, then you can use $self->SUPER::foo() instead.
So using :lvalue methods in a class doesn't really change anything about inheritance.
- tye (but my friends call me "Tye")
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (tye)Re2: Uses for an lvalue subroutine
by gildir (Pilgrim) on Jan 10, 2001 at 21:36 UTC | |
by tye (Sage) on Jan 10, 2001 at 22:41 UTC |