On Sunday, 15 November 2015 at 11:12:02 UTC, Tobias Pankrath wrote:
On Sunday, 15 November 2015 at 10:59:43 UTC, Tobias Pankrath wrote:

Point* p = (allocate memory from somewhere);
emplace!Point(p, 1, 2);

immutable(Point)* immutableP = cast(immutable(Point)*) p;

You could also use the emplace version that takes untyped memory: http://dlang.org/phobos/std_conv.html#.emplace The last one.

Missed that one...

Thanks!

Reply via email to