Array Appenders

bearophile bearophileHUGS at lycos.com
Tue Apr 7 00:09:13 PDT 2009


dsimcha:
> When alias this came out (yes, this was just last week but it feels like
> forever ago with the pace of evolution lately), I started playing around with
> the idea that an ArrayAppender!(T) should consist of an extremely thin wrapper
> around a T[].  It should implicitly convert to T[] and be usable exactly like
> a T[], except that it should have a capacity field and its ~= operator should
> be overridden to use the capacity field for fast appends.

I mostly use D1, but this is a very nice idea. I may try to adapt your idea to modify my ArrayAppender for D2.

Bye,
bearophile



More information about the Digitalmars-d mailing list