Good post about out-of-the-box experience with D

Tobias Pankrath via Digitalmars-d digitalmars-d at puremagic.com
Mon Jan 12 12:55:52 PST 2015


On Monday, 12 January 2015 at 20:35:13 UTC, weaselcat wrote:
> On Monday, 12 January 2015 at 16:16:30 UTC, Andrei Alexandrescu 
> wrote:
>> http://www.reddit.com/r/programming/comments/2s67en/evaluating_d_for_games/
>>Array!int(RefCounted!(Payload, 
>>cast(RefCountedAutoInitialize)0)(RefCountedStore(20D9590)))
>
> Why does std.container.array use refcounted? Seems like serious 
> overhead compared to std::vector in C++.

Because std.container have reference semantics.


More information about the Digitalmars-d mailing list