On 4 December 2013 08:28, Jacob Carlborg <[email protected]> wrote: > On 2013-12-03 17:55, Manu wrote: > >> C++ support in D is 'not complete', but what's there now is still very >> important and not considered a bad partial feature to have. >> I'd imagine that likewise, if the 'core' of Obj-C support is solid, then >> maybe it's worth it in the same sense? >> OSX and iOS are 2 of the most popular platforms on earth. The mobile >> space is probably the most important prospective target for D. >> I can't comment on the state it's in. But if what's there is solid and >> useful like the current C++ support, then it's an important start...? > > > I agree but Michel has a point as well. Walter, I think it was, has also > said that D will never have complete support for C++ because that will > require to build in a C++ compiler in the D compiler. That's not something > we would like to do. >
What complete support? All you really need is: 1) ABI compatibility when passing around basic types.... check [1] 2) ABI compatibility when passing around structs.... check [1] 3) C++ mangling when declaring functions/decls as extern(C++).... check 4) ABI compatibility with C++ classes.... check [1] Oh wait... dmd has a problem... https://d.puremagic.com/issues/show_bug.cgi?id=5570 Forget templates and everything else...
