[Issue 10413] .init incorrectly accepts any expression

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Apr 21 02:39:09 PDT 2014


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

Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com

--- Comment #4 from Andrej Mitrovic <andrej.mitrovich at gmail.com> ---
According to Walter it's ok if a UDT defines its own .init, which would make
value.init valid: https://issues.dlang.org/show_bug.cgi?id=7066

I don't agree with him though, especially since the whole argument against
allowing user-defined default ctors is the compile-time known .init property.

--


More information about the Digitalmars-d-bugs mailing list