in reply to Re^3: Moose: creating sub-classes on the fly
in thread Moose: creating sub-classes on the fly

As documented in Moose, you don't actually inherit the meta method from Moose::Object. Each Moose class gets its own individual meta method built for it, completely overriding any that would have been inherited.

They're all much of a muchness though:

sub meta { $metaclass->initialize(blessed($_[0]) || $_[0]); }

The $metaclass variable which has been closed over is usually the string "Moose::Meta::Class", though it may be a different class name if you're doing interesting metaprogramming stuff.

Replies are listed 'Best First'.
Re^5: Moose: creating sub-classes on the fly
by ikegami (Patriarch) on Oct 13, 2014 at 17:20 UTC

    As documented in Moose, you don't actually inherit the meta method from Moose::Object.

    I never said it was inherited from Moose::Object. The code in question inherits the method from MonkeyMan::Error.