You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I take that back: I believe mop::meta(ref $class) is correct. This gets the $!superclass attribute for mop::class itself, and then calls store_data_in_slot_for on that attribute passing $class (i.e. the meta object for the class I'm wanting to set the superclass of) as the instance.
It would be nice to be able to do:
Setting a class' superclass in normal runtime code is (naturally) insanity. But setting it within a class trait is vaguely sensible. For example:
Might want to set the superclass for Foo::Baz, or might add roles to it, before registering it in some plugin list.
The text was updated successfully, but these errors were encountered: