NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
no gnosis; (Score:2)
Re:no gnosis; (Score:2)
On the other hand, the metaclass object ::Point itself -- on the left-hand side -- is an instance of ::Class, as shown by the dotted line.
Class versus metaclass (Score:2)
Re:Class versus metaclass (Score:2)
Conceptually, if we are implementing perl6 on perl6, then sure ::Class is just the metaclass itself.
But if you are, say, implementing perl6 on perl5 (which is what we're doing now), then you need a perl5-side entity to represent a perl6 class. That's what the MetaClass is.
Otherwise, you can't communicate with other perl5 objects -- "native" ones like DBI.
But it is that exact entity that gets exposed as a ::Class object, so the user won't be able to tell the difference.
Reply to This
Parent