At 06:08 PM 10/9/2001 -0700, Steve Fink wrote: >Quoting Dan Sugalski ([EMAIL PROTECTED]): > > Okay, here's a quick rundown on PMCs and how we're handling opcodes called > > on PMC registers. (This is mildly different than what's gone in the > past, FWIW) > > > > Every PMC has a set of static types, stored in the vtable. These types are > > static, and stuck in the base vtable structure, which looks like: > > > > struct _vtable { > > PACKAGE *package; > > INTVAL base_type; > > INTVAL int_type; > > INTVAL float_type; > > INTVAL num_type; > > INTVAL string_type; > > void *(*vtable_funcs[VTABLE_SIZE])() > > } > > > > (cdecl's responsible for the function pointer table declaration, so I > > expect it's right for what I told it, but I might've told it wrong) > >For sanity's sake, I don't suppose you'd consider > >typedef void* (*vtable_func_t)(); > >to make it > >vtable_func_t vtable_funcs[VTABLE_SIZE];
I'd be thrilled. Abstract types are A Good Thing. In fact, I'll go make it so right now. :) Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk