|XP is just a number|
Re^3: Passing an import list to Moose extendsby LanX (Bishop)
|on May 03, 2018 at 21:06 UTC||Need Help??|
I'm not sure if that's such a trivial requirement.
My next idea was to import manually and run extends afterwards because all the docs say:
When you pass classes to this method, we will attempt to load them if they are not already loaded .
But here it becomes really tricky ... import into which namespace exactly?
You are effectively setting @ISA to a superclass which has to be created with special import features, right?
What if another part of your runtime needs the same superclass with different features?
Well, this gets really abstract without a concrete use case.*
But I think you need to create intermediate classes for different import options between your subclass and superclass.
Or probably you just need to change your concept to mixins?
*) please help us understand better what your goal is.