Placement new and @trusted

IchorDev zxinsworld at gmail.com
Wed Sep 10 15:27:59 UTC 2025


On Wednesday, 10 September 2025 at 14:45:52 UTC, Richard (Rikki) 
Andrew Cattermole wrote:
> The caller is responsible for guaranteeing that the memory 
> passed in is uninitialized, and that behavior is @system.

Yeah but I should be able to mark it as `@trusted` without 
trusting some random bloody constructor as well. Apparently 
nobody thought to use a syntax that allows marking one but not 
the other? This is why we need to use the DIP process to add new 
features like this.


More information about the Digitalmars-d-learn mailing list