At 06:29 PM 8/11/00 -0500, David L. Nicol wrote:
>Dan Sugalski wrote:
> > I think we're going to have to have a doubly-linked list going for @ISA, so
> > when a parent package changes the child packages get changed too. It'll
> > make updates to @ISA more expensive, but if you do that then you ought to
> > be prepared to take a hit.
>
>Well said.
>
>What about if methods (in parent classes) keep a list of what other
>classes have inherited the method -- by method -- so they'll know
>who to signal when one gets redefined?
I don't think it's worth building a list by method, as that'll be an
expense most programs won't need. Instead, whenever a sub in a package gets
added, deleted, or changed, we can propagate that change down to all the
packages that inherited from the changed package. All we should do is toss
any alias entries for the changed routine, though. Doubt inserting's worth
it, and there are issues involved there anyway. (Like is our method the
right one?)
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk