Emplace using private constructor

develop32 develop32 at gmail.com
Fri Jun 7 12:31:30 PDT 2013


On Friday, 7 June 2013 at 16:14:25 UTC, Ali Çehreli wrote:
> But it is too heavy-handed. Your problem exposes a real 
> weakness. Other...

Well, its not *that* heavy.

// Inside Display class.
auto display = alloc!Display;
display.__ctor(name);

Where alloc(T) is a bigger part of the original emplace code and 
is widely used.

But generally, yeah. It would be nice to fix mixins.





More information about the Digitalmars-d-learn mailing list