Can't get Objective-C class method to compile.
Jeremie Pelletier via Digitalmars-d
digitalmars-d at puremagic.com
Thu Dec 31 09:38:47 PST 2015
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 :)
More information about the Digitalmars-d
mailing list