On Thu, 14 Oct 2010, Lars Balker Rasmussen wrote:

Sounds good.  In the meantime, is there a way to force a recalculation
for this cache?

Not easily. You'd have to regenerate the Class::MOP::Method::Wrapped object, which would mean digging into the meta API, removing the method, and readding all the modifiers.

We're (eventually) forcing immutable for all our own classes after
runtime application of the roles, so I was hoping to be able to modify
the classes at will before then (make_immutable is tested for globally
in the test suite along with a couple of other incompatible uses, so
it shouldn't cause problems).

Is this something that actually comes up in real code?

We're depending on this feature right now, yes.  I can work around it
for now, but it'll be a pain to maintain/extend.

Why are you doing this? I just don't see how this could happen with normal code. There might be an easier way to achieve whatever you're trying to achieve.


-dave

/*============================================================
http://VegGuide.org               http://blog.urth.org
Your guide to all that's veg      House Absolute(ly Pointless)
============================================================*/

Reply via email to