in reply to Re: Maintaining State with Runtime Traits
in thread Maintaining State with Runtime Traits
Don't know why my reply didn't show up. I'll try again.
The ISA cache isn't invalidated (that I'm aware of) because when applying the trait to a class, ISA isn't affected. The methods get compiled directly into the class. As for applying a trait to an instance, I follow the Perl 6 route and make a new anonymous class. That alters ISA and if I layer on several runtime traits it might be a problem, but for the most part, it's not caused me any difficulty.
Cheers,
Ovid
New address of my CGI Course.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Maintaining State with Runtime Traits
by diotalevi (Canon) on Oct 14, 2006 at 00:13 UTC |