in reply to (Ovid) Re: is there a way to check @ISA from upstream?
in thread is there a way to check @ISA from upstream?
Problem:
Trying to allow lazy maintenance of multiple interface
widgets, frinstance Receipt::DoubleA, Receipt::TextOnly,
Receipt::BannerAds, etc
at a level above the widgets, we have an AUTOLOAD that allows us to call $ui->Receipt->build(%args), and it will use the Receipt parent class or choose the right subclass based on external criteria.
The problem is, for example, that we might have a Text subclass under Receipt, but not have one under Error.
In that case we could
Ideally, without keeping a separate registry hash of available interfaces, of course ;)
As you noted, perhaps too tricky. The extenuating circumstances of how we got here are lengthy and boring.
{::} =D------an (sometimes the cord just doesn't quite reach)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (dan2bit) Re: (Ovid) Re: is there a way to check @ISA from upstream?
by merlyn (Sage) on May 10, 2001 at 00:10 UTC | |
by dan2bit (Acolyte) on May 10, 2001 at 20:37 UTC | |
by merlyn (Sage) on May 10, 2001 at 23:08 UTC |