Author: allison Date: Sun Apr 1 19:14:27 2007 New Revision: 17939 Modified: trunk/docs/pdds/draft/pdd15_objects.pod
Log: [pdd]: Adding additional parameter to 'newclass' opcode. Modified: trunk/docs/pdds/draft/pdd15_objects.pod ============================================================================== --- trunk/docs/pdds/draft/pdd15_objects.pod (original) +++ trunk/docs/pdds/draft/pdd15_objects.pod Sun Apr 1 19:14:27 2007 @@ -259,6 +259,8 @@ =item name + $P1 = $P2.name( $S3 ) + The accessor for the name attribute. With no argument, it simply returns the current value for name. When passed an argument, it sets the name of the class, and also sets the association with a namespace. With no @@ -652,10 +654,12 @@ =item newclass $P1 = newclass $S2 + $P1 = newclass $S2, $P3 -Create a new base class named $S2, and put the PMC for it in $P1 +Create a new base class named $S2, and put the PMC for it in $P1. You may +optionally pass a hash of initialization parameters for the class in $P3. -=item subclass Px, Py, Sz +=item subclass $P1 = subclass $P2, $S3 @@ -831,7 +835,7 @@ .local pmc FooClass .local pmc MyObject FooClass = get_class "Foo" - MyObject = new FooClass + MyObject = FooClass.new() =head2 Calling a method on an object