Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[svn:parrot-pdd] r18096 - trunk/docs/pdds

3 views
Skip to first unread message

all...@cvs.perl.org

unread,
Apr 9, 2007, 10:15:59 PM4/9/07
to perl6-i...@perl.org
Author: allison
Date: Mon Apr 9 19:15:56 2007
New Revision: 18096

Modified:
trunk/docs/pdds/pdd15_objects.pod

Log:
[pdd]: Adding opcodes and methods for 'inspect' to Objects PDD.


Modified: trunk/docs/pdds/pdd15_objects.pod
==============================================================================
--- trunk/docs/pdds/pdd15_objects.pod (original)
+++ trunk/docs/pdds/pdd15_objects.pod Mon Apr 9 19:15:56 2007
@@ -511,6 +511,13 @@
Returns true if the object in question implements the role, class, type,
or behavior passed in, false otherwise.

+=item inspect
+
+ $P1 = $P2.inspect()
+ $P1 = $P2.inspect($S3)
+
+Return introspection information for the class.
+
=back

=head2 Object PMC API
@@ -793,6 +800,13 @@
include methods added through composing other roles into this role. The
accessor is read-only.

+=item inspect
+
+ $P1 = $P2.inspect()
+ $P1 = $P2.inspect($S3)
+
+Return introspection information for the role.
+
=back

=head3 Role Conflict Resolution
@@ -964,13 +978,24 @@
it will be absent from all future objects of class $P1, of classes that
inherit from class $P1, or of classes that compose the role $P1.

-=item addrole Px, Py
+=item addrole

addrole $P1, $P2

Add role $P2 to the end of the list of roles of class or role $P1. Adds
any methods and attributes of $P2 that aren't already in $P1.

+=item inspect
+
+ $P1 = inspect $P2
+ $P1 = inspect $P2, $S3
+
+Return introspection information for the PMC. Without the optional string
+argument, return a data structure of all information relevant to introspection.
+With the optional string argument, return a PMC Hash, Array, String, Integer,
+or Number value with introspection information corresponding to the requested
+string name.
+
=back

=head2 Vtable Overloading

0 new messages