|Subject:||Replace Moose::Exporter's meta_lookup allback option by looking at init_meta return value|
This is mostly a note to remind myself of my thoughts on this ... While I was working on MX::Role::Parameterized I had some issues with its use of meta_lookup. It does some dangerous and fragile things to make sure that Moose::Exporter and other code sees the right meta object while it's in the process of generating a parameterized role from a parameterizable role. It occurred to me that we can ensure we have the right meta object by simply capturing the return value of init_meta() calls and passing that object around to where it's needed. This needs more investigation, but if I'm right we could simplify the internals a fair bit, and make MXRP less bug-prone at the same time.