First Draft: Placement New Expression

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Sat Nov 2 05:47:24 UTC 2024


After thinking about this a bit, this expression is going to have to be 
``@system``.

Unfortunately this compiles:

```d
cast(void[])new int[1];
```

And so would this, without calling the destructor:

```d
T* t = new T(...);
new(t)T(...)
```



More information about the dip.development mailing list