On Thu, Mar 18, 2004 at 05:25:00PM +0000, Piers Cawley wrote: : Larry Wall <[EMAIL PROTECTED]> writes: : : > On Wed, Mar 17, 2004 at 12:41:20PM -0500, Dan Sugalski wrote: : > : Currently I'm figuring on just nuking the whole cache in any of these : > : cases. Later on we can consider doing Clever Things, if it seems : > : worthwhile. : > : > That's what Perl 5 does, FWIW. But you're caching scheme seems way : > too complicated to me. In Perl 5, you cache the method simply by : > making it look like it's a member of the current class. There's very : > little extra mechanism. You just have to know which methods are the : > "fake" ones you can blow away. : : And this is why Perl 5 can't work out SUPER:: type stuff at : runtime. It's possible through cleverness to find out where you were : found the *first* time you're called, but the information isn't : retained in the cache. Which is a complete and utter PITA.
Fair enough. I'm all in favor of sweeping PITAs from Perl into C. :-) Larry