| parrotcode Parrot's library of object ops | |
| Docs | FAQ | Download | Examples | Talks | Resources | Perl 6 | Languages | Who's Who | Donors | Cage Cleaners | Wiki | |
object.ops
Parrot's library of object ops
Call method $2 with invocant $1 and generate a new return continuation. The invocant ($1) is used for method lookup. The object is passed as the first argument in set_args.
Throws a Method_Not_Found_Exception for a non-existent method.
Like above but use the Sub object $2 as method.
Like above, but use continuation $3 instead of creating a new continuation.
Make a tailcall to method $2 with invocant $1.
Adds $3 as a method named $2 to $1.
Sets result $1 to the result of the "can" vtable function for PMC $2, given method $3.
Sets result $1 to the result of the "does" vtable function for PMC $2, given the role of name $3.
Sets result $1 to the result of the "does" vtable function for PMC $2, given the role $3.
Sets result $1 to the result of the "isa" vtable function for PMC $2, given class $3.
Create a new Parrot-style class, named $2, and puts the new PMC for it into $1.
Create a new Parrot-style class, with the name given in $2 as a key, namespace, or string PMC.
Create a new class, put in $1, that is a subclass of $2. $3, if available and not null, is the name of the new class--if not, the subclass is an anonymous subclass.
Create a new class, put in $1, that is a subclass of the class named $2. $3, if available and not null, is the name of the new class--if not, the subclass is an anonymous subclass.
Find the PMC for a class, by name. Deprecated - works with the old class system.
Find the PMC for a class, by string name or by key.
Get the class PMC for the object in $2 and put it in $1.
Add class $2 to the list of parent classes for $1.
Remove class $2 from class $1's list of parents.
Compose the role $2 into $1.
Add the attribute named $2 to the class $1.
Remove attribute $2 from class $1, specified either by name or offset.
Get the attribute $3 from object $2 and put the result in $1.
Get the attribute $4 from the parent $3 of object $2 and put the result in $1. (This is useful for storing data for a parent class attribute that is overridden in a child class.) The parent $3 is a class name, namespace, or key PMC.
Set attribute $2 of object $1 to $3.
Set attribute $3 of the parent $2 of object $1 to $4. (This is useful for storing data for a parent class attribute that is overridden in a child class.) The parent $2 is a class name, namespace, or key PMC.
Sets $1 to a PMC hash of all introspection data available for $2, keyed on name.
Sets $1 to a PMC Hash, Array, String, Integer, or Number value with introspection information corresponding to the requested string name.
Copyright (C) 2001-2008, The Perl Foundation.
This program is free software. It is subject to the same license as the Parrot interpreter itself.
|
Perl.org sites
: bugs
| dev
| history
| jobs
| learn
| lists
| use
Site Information and Contacts |
|