cvsuser 04/02/25 08:49:19
Modified: docs/pdds pdd15_objects.pod
Log:
Use the new ops names in the examples
Revision Changes Path
1.26 +5 -5 parrot/docs/pdds/pdd15_objects.pod
Index: pdd15_objects.pod
===================================================================
RCS file: /cvs/public/parrot/docs/pdds/pdd15_objects.pod,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -w -r1.25 -r1.26
--- pdd15_objects.pod 25 Feb 2004 14:57:51 -0000 1.25
+++ pdd15_objects.pod 25 Feb 2004 16:49:19 -0000 1.26
@@ -486,8 +486,8 @@
Adding the attributes C<a> and C<b> to the new class C<Foo>:
newclass $P0, "Foo"
- addattr $P0, "a", "Foo::a" # This is offset 0
- addattr $P0, "b", "Foo::b" # This is offset 1
+ addattribute $P0, "a", "Foo::a" # This is offset 0
+ addattribute $P0, "b", "Foo::b" # This is offset 1
=head2 Instantiating an object
@@ -503,11 +503,11 @@
Calling the method C<Xyzzy> on an object, assuming the PDD03 calling
conventions are respected:
- callmeth "Xyzzy"
+ callmethod "Xyzzy"
Or, if a return continuation needs constructing:
- callmethcc "Xyzzy"
+ callmethodcc "Xyzzy"
=head2 Accessing attributes from within a class
@@ -518,7 +518,7 @@
.local int BOffset
classoffset BaseOffset, $P0, "Foo"
BOffset = BaseOffset + 1
- getattr $P1, $P0, BOffset
+ getattribute $P1, $P0, BOffset
=head1 TRANSLATION AND GLOSSARY