[Issue 12233] Attempting to use TypeInfo.init results in a compiler error due to lack of 'this'.

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Dec 29 13:16:03 PST 2015


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

--- Comment #5 from github-bugzilla at puremagic.com ---
Commit pushed to master at https://github.com/D-Programming-Language/druntime

https://github.com/D-Programming-Language/druntime/commit/04700217971964fdc8edb1798eaa669ec37fa7e9
rename TypeInfo's init method to initializer

"init" clashes with the type property of the same name.

Adding an alias called "init" to give people a chance to update their
code.

Further deprecation plan:
* 2.071: Do nothing. Keep both init and initializer functional for a while.
* 2.072: Deprecate the alias.
* 2.073: Replace the alias with an `@disable`d method.
* 2.074: Remove the init method, fixing issue 12233.

--


More information about the Digitalmars-d-bugs mailing list