Struct default constructor - need some kind of solution for C++ interop
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Wed Sep 7 15:31:17 PDT 2016
On 9/7/2016 3:24 PM, John Colvin wrote:
> What, precisely, does "valid" mean in the above?
S is initialized to a valid state, meaning the fields are not filled with
garbage, and are in a state expected by the member functions.
But if there's a default constructor,
S s = S.init;
S s;
which is correct?
More information about the Digitalmars-d
mailing list