On 12/04/2012 18:14, Marvin Humphrey wrote:
On Thu, Apr 12, 2012 at 2:58 AM, Nick Wellnhofer<[email protected]>  wrote:
A user-defined per-class initialization function sounds very useful.

Here's a refinement: Instead of providing per-class initialization support, we
can support a single per-parcel initialization function.

Here's how we might implement such a function right now:

     void
     lucy_init_parcel(void) {
         lucy_Bool_init_class();
         lucy_Hash_init_class();
     }

CFC could also generate this code this automatically by simply checking whether a class has an "init_class" function.

Nick

Reply via email to