shared array?

ponce via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Sep 14 14:01:07 PDT 2015


On Monday, 14 September 2015 at 20:54:55 UTC, Jonathan M Davis 
wrote:
>
> So, you _can_ have low heap allocation in a C++ program, and 
> many people do, but from what I've seen, that really isn't the 
> norm across the C++ community in general.
>
> - Jonathan M Davis

Fully agreed, C++ in the wild often make lots of copies of data 
structure, sometimes by mistake (like std::vector passed by value 
instead of ref).
When you copy an aggregate by mistake, every field itself gets 
copied etc.
Copies copies copies everywhere.




More information about the Digitalmars-d-learn mailing list