[Issue 18016] using uninitialized value is considered @safe but has undefined behavior

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 11 00:59:21 UTC 2019


--- Comment #14 from Manu <turkeyman at gmail.com> ---
> As a whole, using an uninitialized variable wouldn't be implementation defined. > That would be silly.

I don't think it's silly at all. It's perfectly fine.
Please don't butcher LDC to accommodate DMD's quirks.
Reading from uninitialised memory is an invalid operation, and unnecessarily
initialising memory has real cost.


More information about the Digitalmars-d-bugs mailing list