https://issues.dlang.org/show_bug.cgi?id=14078

Ketmar Dark <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Ketmar Dark <[email protected]> ---
`emplace` is not a built-in. one can write alot of emplace-like functions that
allocates any memory for the object. even the function named `emplace`, that
will sometimes allocates on stack and sometimes uses `malloc()`.

what you actually asking is compiler that is able to use some AI to see what
programmer *means* by writing the code. this is not possible.

if you want stack-allocated classes with automatic dtors, why don't use
`std.typecons.scoped`?

--

Reply via email to