Explicit default constructor for structs
monarch_dodra
monarchdodra at gmail.com
Fri Apr 11 06:53:09 PDT 2014
On Friday, 11 April 2014 at 12:58:09 UTC, Dicebot wrote:
> On Thursday, 10 April 2014 at 21:23:43 UTC, monarch_dodra
> wrote:>
>> *BUT*, if you happen to copy paste C++ code, and it *does*
>> compile, then it is pretty much expected to keep the same
>> resulting semantics, yes.
>
> It does not work that way and has never worked. Think about
> class semantics for example.
Yeah. It'd say those wouldn't compile anyway, but I guess
something as trivial as:
//----
class A
{...}
A a;
a.doit;
//----
Would compile for both languages, but give different results.
Fine.
More information about the Digitalmars-d
mailing list