sociomantic-tsunami / swarm

Asynchronous client/node framework library
Boost Software License 1.0
14 stars 26 forks source link

Use TypeInfo_Class.initializer() in D2 builds to get the initializer #254

Closed nemanja-boric-sociomantic closed 6 years ago

nemanja-boric-sociomantic commented 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.

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).

gavin-norman-sociomantic commented 6 years ago

Ahh nice. I did find it odd that they'd called it init.