Closed nemanja-boric-sociomantic closed 6 years ago
TypeInfo_Class.init is deprecated and removed from the runtime (since .init clashes with the type property of the same name). This uses initializer() method which is the new way of accessing the same thing in D2.
initializer()
https://github.com/dlang/druntime/pull/1403 https://github.com/dlang/druntime/pull/1766 https://github.com/dlang/druntime/pull/1807
https://issues.dlang.org/show_bug.cgi?id=15037 https://issues.dlang.org/show_bug.cgi?id=12233
(note - this still works with the dmd-transitional, but it breaks with v2.078 in v5.x.x, so fixing it here, as this approach works as well).
Ahh nice. I did find it odd that they'd called it init.
init
TypeInfo_Class.init is deprecated and removed from the runtime (since .init clashes with the type property of the same name). This uses
initializer()
method which is the new way of accessing the same thing in D2.https://github.com/dlang/druntime/pull/1403 https://github.com/dlang/druntime/pull/1766 https://github.com/dlang/druntime/pull/1807
https://issues.dlang.org/show_bug.cgi?id=15037 https://issues.dlang.org/show_bug.cgi?id=12233
(note - this still works with the dmd-transitional, but it breaks with v2.078 in v5.x.x, so fixing it here, as this approach works as well).