Author: particle
Date: Fri Sep 21 10:14:20 2007
New Revision: 21465

Modified:
   trunk/docs/pdds/pdd17_pmc.pod

Changes in other areas also in this revision:
Modified:
   trunk/lib/Parrot/Pmc2c/Parser.pm

Log:
[PDD17]: use VTABLE marker when defining vtable functions
~ modified PDD17 text to specify VTABLE marker
~ modified pmc2c to parse VTABLE and ATTR markers

Modified: trunk/docs/pdds/pdd17_pmc.pod
==============================================================================
--- trunk/docs/pdds/pdd17_pmc.pod       (original)
+++ trunk/docs/pdds/pdd17_pmc.pod       Fri Sep 21 10:14:20 2007
@@ -240,15 +240,10 @@
 =head3 Defining vtable functions
 
 Vtable functions are defined as C functions within the body of the C<pmclass>
-declaration.
+declaration, and are marked with C<VTABLE>.
 
-  STRING *get_string() {...}
-  void set_string_native(STRING *value) {...}
-
-{{ PROPOSAL: I'd like to require that all vtable functions be declared
-with "VTABLE" at the beginning of the declaration, similar to "METHOD"
-and "PCCMETHOD". At the very least it's self-documentation. It might
-also be a useful hook for future pmc2c preprocessing. }}
+  VTABLE STRING *get_string() {...}
+  VTABLE void set_string_native(STRING *value) {...}
 
 Within the body of vtable functions, several shortcuts are provided:
 

Reply via email to