Re: Firs step of D/Objective-C merged

2015-07-14 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-07-14 03:11, Michel Fortin wrote: More or less. If you define an `extern (Objective-C)` class in D (once all my work is merged), you can use it and derive from it in Swift. If you define an `@objc` class in Swift you can use it from Objective-C and from D, but you can't derive from it.

Re: Firs step of D/Objective-C merged

2015-07-14 Thread Michel Fortin via Digitalmars-d-announce
On 2015-07-14 18:53:31 +, Jacob Carlborg d...@me.com said: Hmm, I see. I imagined something similar would need to be done for the new exception handling in Swift 2, but for every method, that was unexpected. Now when Swift goes open source someone can just have a look and see what's going

Re: Firs step of D/Objective-C merged

2015-07-14 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-07-14 20:05, Michel Fortin wrote: Actually, they only need to follow it up what they guaranty will work. If you debug some Swift code mixed with Objective-C, you'll notice that every call to a Swift method from Objective-C first passes through a thunk function (not dissimilar to my

Re: Firs step of D/Objective-C merged

2015-07-14 Thread Michel Fortin via Digitalmars-d-announce
On 2015-07-14 13:59:51 +, Jacob Carlborg d...@me.com said: On 2015-07-14 03:11, Michel Fortin wrote: More or less. If you define an `extern (Objective-C)` class in D (once all my work is merged), you can use it and derive from it in Swift. If you define an `@objc` class in Swift you can

Re: Firs step of D/Objective-C merged

2015-07-13 Thread Steven Schveighoffer via Digitalmars-d-announce
On 7/11/15 4:25 PM, Jacob Carlborg wrote: I just manged to get all tests passing on all platforms. Now the first step of D/Objective-C has been merged [1][2]. The only thing that's supported for now is calling Objective-C instance methods from D. I want to give special thanks to Michel Fortin

Re: Firs step of D/Objective-C merged

2015-07-13 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-07-13 16:02, Steven Schveighoffer wrote: I wanted to ask, swift can call into objective-C, so does this de-facto give us a D/swift binding as well? I haven't written a single line of swift yet, so apologies if this is a stupid question. Without having tried it I would say it works. Of

Re: Firs step of D/Objective-C merged

2015-07-13 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-07-12 19:33, Jack Stouffer wrote: Cool, thanks :)! Is this going to make the 2.068 cut? The release manager will need to answer this. -- /Jacob Carlborg

Re: Firs step of D/Objective-C merged

2015-07-13 Thread Michel Fortin via Digitalmars-d-announce
On 2015-07-13 14:02:54 +, Steven Schveighoffer schvei...@yahoo.com said: I wanted to ask, swift can call into objective-C, so does this de-facto give us a D/swift binding as well? I haven't written a single line of swift yet, so apologies if this is a stupid question. More or less. If

Re: Firs step of D/Objective-C merged

2015-07-12 Thread Dan Olson via Digitalmars-d-announce
Very good news!

Re: Firs step of D/Objective-C merged

2015-07-12 Thread Sönke Ludwig via Digitalmars-d-announce
Fantastic, this is really great news! Big thanks to you and Michel!

Re: Firs step of D/Objective-C merged

2015-07-12 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-07-11 23:18, Jack Stouffer wrote: Is there any documentation available yet? No, no official documentation. You can have a look at the DIP [1], but that contains a lot more than what's currently implemented. I recommend having a look at the tests, this one [2] for example. [1]

Re: Firs step of D/Objective-C merged

2015-07-12 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-07-12 05:46, Rikki Cattermole wrote: Good job woot! Now we just need a way to create instances ext. :) You can create instances with the help of the Objective-C runtime, have a look at one of the tests [1]. [1]

Re: Firs step of D/Objective-C merged

2015-07-12 Thread via Digitalmars-d-announce
On Saturday, 11 July 2015 at 20:25:47 UTC, Jacob Carlborg wrote: [1] https://github.com/D-Programming-Language/dmd/commit/941808dc44a03396d41657cfa9ccc8bfe901f3a7 [2] https://github.com/D-Programming-Language/druntime/commit/b50096fdbe425e32b4edf1341369434a57a63b31 Cool! I'll spread the

Re: Firs step of D/Objective-C merged

2015-07-12 Thread Dmitry Olshansky via Digitalmars-d-announce
On 11-Jul-2015 23:25, Jacob Carlborg wrote: I just manged to get all tests passing on all platforms. Now the first step of D/Objective-C has been merged [1][2]. The only thing that's supported for now is calling Objective-C instance methods from D. I want to give special thanks to Michel Fortin

Re: Firs step of D/Objective-C merged

2015-07-12 Thread Rikki Cattermole via Digitalmars-d-announce
On 12/07/2015 10:08 p.m., Jacob Carlborg wrote: On 2015-07-12 05:46, Rikki Cattermole wrote: Good job woot! Now we just need a way to create instances ext. :) You can create instances with the help of the Objective-C runtime, have a look at one of the tests [1]. [1]

Re: Firs step of D/Objective-C merged

2015-07-12 Thread Jack Stouffer via Digitalmars-d-announce
On Sunday, 12 July 2015 at 10:07:36 UTC, Jacob Carlborg wrote: On 2015-07-11 23:18, Jack Stouffer wrote: Is there any documentation available yet? No, no official documentation. You can have a look at the DIP [1], but that contains a lot more than what's currently implemented. I recommend

Re: Firs step of D/Objective-C merged

2015-07-11 Thread Rikki Cattermole via Digitalmars-d-announce
On 12/07/2015 8:25 a.m., Jacob Carlborg wrote: I just manged to get all tests passing on all platforms. Now the first step of D/Objective-C has been merged [1][2]. The only thing that's supported for now is calling Objective-C instance methods from D. I want to give special thanks to Michel

Re: Firs step of D/Objective-C merged

2015-07-11 Thread Jack Stouffer via Digitalmars-d-announce
On Saturday, 11 July 2015 at 20:25:47 UTC, Jacob Carlborg wrote: The only thing that's supported for now is calling Objective-C instance methods from D Is there any documentation available yet?

Firs step of D/Objective-C merged

2015-07-11 Thread Jacob Carlborg via Digitalmars-d-announce
I just manged to get all tests passing on all platforms. Now the first step of D/Objective-C has been merged [1][2]. The only thing that's supported for now is calling Objective-C instance methods from D. I want to give special thanks to Michel Fortin who did the original implementation. I

Re: Firs step of D/Objective-C merged

2015-07-11 Thread ketmar via Digitalmars-d-announce
congratulations! seems to be a necessity for apple platforms. signature.asc Description: PGP signature

Re: Firs step of D/Objective-C merged

2015-07-11 Thread Rikki Cattermole via Digitalmars-d-announce
On 12/07/2015 5:33 p.m., ketmar wrote: congratulations! seems to be a necessity for apple platforms. Extremely :/ https://github.com/Devisualization/window/blob/master/cocoa_library/project/dwc-osx/window_events.m