On Thursday, 31 December 2015 at 08:56:07 UTC, Jacob Carlborg wrote:
D doesn't support Objective-C classes methods yet. But as a workaround you can look how it's done with the "alloc" method in the documentation [1]. Declare the method as a non-static method but use the result from "objc_lookUpClass" as the receiver (object).

[1] http://dlang.org/spec/objc_interface.html#usage-example

Oh, that's good to know! Thanks for the tip :)

I'll definitely keep an eye out for the rest of Objective-C support. Adding it was a fantastic idea :)

Reply via email to