Applying Placement New to druntime and phobos

Paul Backus snarwin at gmail.com
Mon Mar 3 15:12:20 UTC 2025


On Monday, 3 March 2025 at 13:23:57 UTC, Per Nordlöw wrote:
> On Monday, 3 March 2025 at 12:40:06 UTC, Per Nordlöw wrote:
>> Now that https://github.com/dlang/dmd/pull/17057 has been 
>> merged are there any obvious applications of it to druntime 
>> and phobos?
>
> Should all instances of `core.lifetime.emplace()` be replaced 
> with a call to placement new?

I think a good first step would be to try replacing the current 
implementation(s) of `emplace` with calls to placement new.


More information about the Digitalmars-d mailing list