|
Perl 6
SMOP p6opaque Implementation: Revision 27
The p6opaque Responder Interface is the default responder for all Perl 6 objects, according to the SMOP OO API. p6opaque StructureI use 'repr' as class keyword here to indicate that this is not a real class, but the low-level reponder interface that intercepts the calls with the '^!' prefix. Everything else should be delegated to the metaclass instance. repr p6opaque {has $.^!instanceof; # direct delegation of a single prototype, used by most object instances.} repr p6opaque_proto {has $.^!how; # the metaclass instance in use} |