H1 2015 - C++ integration

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Tue Feb 17 08:01:24 PST 2015


On 2/17/15 3:34 AM, Guillaume Chatelet wrote:
> On Sunday, 15 February 2015 at 19:49:28 UTC, Andrei Alexandrescu wrote:
>> Please file bugs for any constructor/destructor issues you find (I
>> notice you filed one already). Walter is up to the task and of course
>> I'm counting on others, too.
>
> ctor/dtor C++ naming : https://issues.dlang.org/show_bug.cgi?id=14086
> invalid stl manlging : https://issues.dlang.org/show_bug.cgi?id=14178
>
> Questions :
> + Shall I add one more to allow default ctor for struct when they are
> extern C++ ? (ie. no @disable)

This is tricky. I'd say for now we shouldn't allow default-constructed 
C++ objects. We can later add a special type e.g. CppDefault to mean 
"invoke the C++ default constructor".

> + I guess this C++ STL binding will end up in phobos. Any idea of where
> this should be put ?

core.stdcpp.


Andrei


More information about the Digitalmars-d mailing list