Re: refcounting hash
[email protected] (Nicholas Clark) Wed, 20 Jul 2005 20:35:25 +0100
| Newsgroups | perl.perl6.internals,perl.ponie.dev |
|---|---|
| Message-ID | <[email protected]> |
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