Perl 6
SMOP p6opaque Implementation: Revision 24

The p6opaque Responder Interface is the default responder for all Perl 6 objects, according to the SMOP OO API.

p6opaque Structure

I 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.
has $.^!WHENCE; # autovivication closure, used by autovivification
has p6opaque_proto %.^!proto_storage handles *;
has Hash of Hash %.^!instance_storage;
default ($ri, $identifier, $capture) {
$$capture.^!how.dispatch($ri, $identifier, $capture);
}
}

repr p6opaque_proto {
has $.^!how; # the metaclass instance in use
has $.^!who; # the package implementing this prototype
has @.^!isa; # an array of other protoypes
has @.^!does; # an array of other prototypes
has %.^!storage; # prototype storage (class variables)
has %.^!attributes; # attribute definitions
has %.^!methods; # methods by name
has %.^!submethods; # submethods by name
}

Upload Files

Click "Browse" to find the file you want to upload. When you click "Upload file" your file will be uploaded and added to the list of attachments for this page.

Maximum file size: 50MB

 
 
 
File Name Author Date Uploaded Size

Save Page As

Enter a meaningful and distinctive title for your page.

Page Title:

Tip: You'll be able to find this page later by using the title you choose.

Page Already Exists

There is already a page named XXX. Would you like to:

Save with a different name:

Save the page with the name "XXX"

Append your text to the bottom of the existing page named: "XXX"

Upload Files

Click "Browse" to find the file you want to upload. When you click "Add file" this file will be added to the list of attachments for this page, and uploaded when you save the page.

 
 
 
Add Tags

Enter a tag and click "Add tag". The tag will be saved when you save the page.

Tag: 

Suggestions: