in reply to Re^3: Modification of @ISA at run time
in thread Modification of @ISA at run time
When ->isa checks are used with respect to the delegate for the prupose of type checking (what kind of archive format do you encapsulate, mr Archive::Any instance?), then it's perhaps a design problem, because not caring is the reason we wrapped it in the first place.But one may find desirable to have some common functionality plus extra type-specific features, e.g.
Or is such a design to be considered inherently risky?if ($this->isa 'cool_archive') { print $this->name, " is a cool archive.\n", <<EOT; You also have the following cool features: ... (more cool features) EOT # interactively ask user to pick one... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Modification of @ISA at run time
by nothingmuch (Priest) on Sep 01, 2005 at 15:36 UTC | |
by blazar (Canon) on Sep 01, 2005 at 15:46 UTC | |
by nothingmuch (Priest) on Sep 03, 2005 at 13:12 UTC |