Author: allison
Date: Sun Apr  1 23:05:55 2007
New Revision: 17941

Modified:
   trunk/docs/pdds/draft/pdd15_objects.pod

Log:
[pdd]: Consistency on attribute addtion in Objects PDD.


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 23:05:55 2007
@@ -278,6 +278,7 @@
 
 =item add_attribute
 
+  $P1.add_attribute($S2)
   $P1.add_attribute($S2, $S3)
   $P1.add_attribute($S2, $P3)
 
@@ -525,10 +526,14 @@
 
 =item add_attribute
 
+  $P1.add_attribute($S2)
   $P1.add_attribute($S2, $S3)
+  $P1.add_attribute($S2, $P3)
 
 Adds a single attribute to the role. It takes a simple string name, and
-a simple string value for type.
+optionally, a simple string value or key specifying a type name. (A type
+name just checks C<does>, and doesn't necessarily correspond to a class
+or role namespace.)
 
 =item add_role
 
@@ -701,10 +706,14 @@
 =item addattribute
 
   addattribute $P1, $S2
+  addattribute $P1, $S2, $S3
+  addattribute $P1, $S2, $P3
 
 Add attribute $S2 to class or role $P1. This will add the attribute slot
 to all objects of class $P1, classes that inherit from class $P1, or
-classes that compose the role $P1, with a default value of C<Null>.
+classes that compose the role $P1, with a default value of C<Null>.  It
+optionally takes a simple string value or key specifying a type of the
+attribute.
 
 =item removeattribute
 

Reply via email to