At 05:53 PM 8/11/00 -0500, David L. Nicol wrote:
>Graham Barr wrote:
> > Well perl5 already does that. The first time a method is called it searchs
> > ISA, but it caches the result in the package the object is blessed
> > into, so next time it finds it without searching ISA
>
>
>One assumes that if you redefine (@ISA) perl5 throws away this cache?

Yup.

>If D isa C isa B and D looked up method f and found it in B's methods,
>then C redefines itself as an A, does perl5 figure out to throw away
>D->f ?

Yup. I think it's pretty global in cache trashing, but I haven't looked lately.

>I mean, who redefines ISA at  run time?

Everyone who uses a module. All that code in the .pm gets executed when 
used--the hierarchy gets built dynamically, and in pieces. It's never known 
completely at compile time. (Heck, compile time's fragmented with a 
half-zillion executions so there isn't even a real 'compile phase' in perl, 
just the place perl's run out of code to chew through)

>People who are frustrated
>that the OS won't let them write self-modifying assembly programs
>anymore?

Nope. Folks doing clever things. (I expect Damian does it... :)

>And how did Ing-Simmons get on the reply-to-all CC list twice?

'Cause he's special, of course. :-)

                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to