On Thu, Jul 14, 2005 at 06:14:52PM +0200, Leopold Toetsch wrote: > Nicholas Clark wrote: > > >I'd like to be able to provide this as a non-singleton PMC class, with the > >addition of a value lookup, and (possibly) iteration. But cut and paste is > >evil. > > Well, the more general question is: how can we parameterize our > aggregates. We already have tons of arrays with (bit, double, int, PMC*, > STRING*) values.
> For now c&p helps :-) I don't agree. c&p is evil, because it causes code bloat and propagates bugs. And I'm not after parameterising the aggregates - I'd like to instantiate another instance of what is currently a singleton, for the same type, with the same specific, specialised behaviour. Nicholas Clark