from PDD17: =head3 Defining vtable functions
Vtable functions are defined as C functions within the body of the C<pmclass> declaration. 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. }} i'd very much like to see this proposal take effect. all vtable functions would be marked with VTABLE, all attributes would be marked with ATTR, and all methods would be marked with METHOD. that leaves only helper functions, which in all likelihood will be marked static. the self-documentation promises to make pmc development quite a bit easier. if there are no naysayers, i will update the pdd, convert pmc2c to handle these constructs, and start fixing up the source. let me know. ~jerry