her type.
> 
> An alternative is to _not_ make enumerators freeable locals: they'd always 
> have to be explicitly released by user.  

Is it possible to keep a list of all enumerators associated with an object and 
free them only when the object is freed or if the enumerator is explicitly 
freed while the object exists.  

I suspect most times there would rarely be more than a couple of active 
enumerators (or maybe just one) so you could start with slots for a samll 
number of enumerators pre-allocated with object, and then only malloc more if 
needed.

Reply via email to