'new' class method

Sergey Gromov snake.scaly at gmail.com
Thu Oct 23 14:28:48 PDT 2008


Fri, 24 Oct 2008 05:31:44 +0900,
Bill Baxter wrote:
> But, ok, this isn't Python so we have to have a story for placement new.
> I believe use of placement new is pretty rare.  (I use it rarely,
> anyway. :-) )   If so it should be ok if the syntax is a little
> clunky.

Maybe do it with a library function?

auto c = core.intrinsic.construct!(C)(addr, ctor_arg0, ctor_arg1);



More information about the Digitalmars-d mailing list