[Issue 17954] init member should be disallowed

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 31 07:41:38 UTC 2017


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

Jacob Carlborg <doob at me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |doob at me.com

--- Comment #1 from Jacob Carlborg <doob at me.com> ---
I think it's a bit unfortunate that we're moving in this direction and are
adding more of these kind of pseudo keywords. I would rather add
__traits(init), deprecate the existing usage of "init" and eventually free up
"init" to be used as an identifier. The nice thing about __traits is that it's
its own kind of namespace and will not cause a conflict with user defined
symbols.

--


More information about the Digitalmars-d-bugs mailing list