Decision on container design

Tomek Sowiński just at ask.me
Sat Jan 29 03:00:53 PST 2011


Michel Fortin napisał:

> As for the case of Appender... personally in the case above I'd be 
> tempted to use Appender.Impl directly (value semantics) and make fill 
> take a 'ref'. There's no point in having an extra heap allocation, 
> especially if you're calling test() in a loop or if there's a good 
> chance fill() has nothing to append to it.

Or take an output range.

-- 
Tomek



More information about the Digitalmars-d mailing list