At 12:00 AM 10/9/2001 +0100, Simon Cozens wrote: >On Mon, Oct 08, 2001 at 06:36:32PM -0400, Dan Sugalski wrote: > > PACKAGE *package; > > INTVAL base_type; > > INTVAL int_type; > > INTVAL float_type; > > INTVAL num_type; > > INTVAL string_type; > >Why are all these in the vtable? They seem like PMC-ish things >to me.
Well, they really describe how the PMC behaves, which is the purview of the vtable functions. Keeping them there means things will stay in sync, since the vtable methods are what's responsible for a variable acting a particular way. These are also replacing the type method for scalar variables. (There's still one for individual elements of an aggregate) Consider them a pre-memoized version of the scalar type. :) Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk