plans for interfacing to C++

Martin Nowak dawg at dawgfoto.de
Mon Jan 9 03:42:11 PST 2012


Am 09.01.2012, 04:54 Uhr, schrieb Trass3r <un at known.com>:

> There were some discussions about adding namespace support with  
> something like extern(C++, namespace) IIRC. Don't know the result though.
>
> Then there's this small patch  
> (http://d.puremagic.com/issues/show_bug.cgi?id=4620) which allows very  
> interesting stuff, even simple templates. It's rotting.
>
> So what are the current plans?
> Not being able to access C++ libraries directly is a real blocker. We  
> should really try to improve the situation.

IMHO this patch is rather flawed

  - Don't construct C++ classes as value types.
    You would need to know the exact size of the type
    and D can't preserve semantics for copy and assign.

  - D and C++ templates don't really map.


More information about the Digitalmars-d mailing list