Explicit default constructor for structs

Jacob Carlborg doob at me.com
Thu Apr 10 12:28:16 PDT 2014


On 2014-04-10 17:21, Remo wrote:

> Please do not forget about C++ porting problems that are related to this.
> The code from C++ should compile and work as expected or does not
> compile at all and give meaningful error message.
> Right now it compiles but does not work at all.
> This struct constructor problem is one of the ground why I have stopped
> porting code to D.
> I hope there will be proper solution soon.

How said anything about that? It has been said that one should be able 
to paste C code in a D file and have it compile with the same resulting 
semantics as in C or not compile at all. But never for C++.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list