Re: Extending Objective-C from D.

2016-01-18 Thread Jacob Carlborg via Digitalmars-d
On 2016-01-17 16:18, Jeremie Pelletier wrote: At this point I'll wait for more support, there's just too much to copy/paste :) Perhaps a mixin could help with minimizing copy/paste. -- /Jacob Carlborg

Re: Extending Objective-C from D.

2016-01-18 Thread Jacob Carlborg via Digitalmars-d
On 2016-01-17 14:21, Jeremie Pelletier wrote: Oh by the way, I see the DIP declares blocks with the __block keyword, shouldn't it be better to reuse delegate with extern(Objective-C) ? Feels cleaner and more consistent with the rest of the language to me. That part is not implemented yet. We'l

Re: Extending Objective-C from D.

2016-01-17 Thread Jeremie Pelletier via Digitalmars-d
On Sunday, 17 January 2016 at 13:21:39 UTC, Jeremie Pelletier wrote: On Sunday, 10 January 2016 at 21:51:53 UTC, Guillaume Piolat wrote: On Saturday, 9 January 2016 at 10:09:12 UTC, Jeremie Pelletier wrote: Hello, I'm trying to see if I can write a full Cocoa app in D, and I'm having trouble cr

Re: Extending Objective-C from D.

2016-01-17 Thread Jeremie Pelletier via Digitalmars-d
On Sunday, 10 January 2016 at 21:51:53 UTC, Guillaume Piolat wrote: On Saturday, 9 January 2016 at 10:09:12 UTC, Jeremie Pelletier wrote: Hello, I'm trying to see if I can write a full Cocoa app in D, and I'm having trouble creating D classes when the underlying Objective-C interfaces have meth

Re: Extending Objective-C from D.

2016-01-10 Thread Guillaume Piolat via Digitalmars-d
On Saturday, 9 January 2016 at 10:09:12 UTC, Jeremie Pelletier wrote: Hello, I'm trying to see if I can write a full Cocoa app in D, and I'm having trouble creating D classes when the underlying Objective-C interfaces have methods. It works for the app delegate because it needs to override th

Re: Extending Objective-C from D.

2016-01-09 Thread Jacob Carlborg via Digitalmars-d
On 2016-01-09 11:09, Jeremie Pelletier wrote: Hello, I'm trying to see if I can write a full Cocoa app in D, and I'm having trouble creating D classes when the underlying Objective-C interfaces have methods. D doesn't yet support implementing Objective-C methods or classes in D. It currently o

Extending Objective-C from D.

2016-01-09 Thread Jeremie Pelletier via Digitalmars-d
Hello, I'm trying to see if I can write a full Cocoa app in D, and I'm having trouble creating D classes when the underlying Objective-C interfaces have methods. It works for the app delegate because it needs to override them, but for other classes the compiler says the Objective-C methods ar