Michel Fortin: > That's why I changed course and abandoned my > bridge (the second in your list), working instead on making DMD > directly aware of the Objective-C object model. This way, you can have > extern(Objective-C) classes and use them as if they were D classes > (mostly), no wrapper class and no glue code necessary. > <http://michelf.com/weblog/2010/dobjc-dead-end-start-anew/>
It's a cute idea, and I presume those binding are useful, but if those changes will not be folded back into the D language/compiler, then this idea may eventually die out. And in my opinion this syntax is not very nice (but I remember why the attribute syntax was not used, so this may be an acceptable compromise): void getCharacters(wchar* buffer, NSRange range) [getCharacters:range:]; Bye, bearophile