"Value class instance" pattern?

Kagamin spam at here.lot
Sat Jul 13 10:44:59 PDT 2013


On Saturday, 13 July 2013 at 12:47:28 UTC, bearophile wrote:
> In C++ class instances are values, so the class Bar can contain 
> an instance of Foo as a value. This removes one allocation and 
> one indirection and decreases a bit the pressure on the GC. How 
> to do the same thing in D? Can I use Scoped or something to do 
> that?

emplace?


More information about the Digitalmars-d mailing list