Default initialization of structs?
Kagamin via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Jun 17 06:26:25 PDT 2016
On Friday, 17 June 2016 at 12:31:33 UTC, David Nadlinger wrote:
> Structs cannot have a default constructor; .init is required to
> be a valid state (unless you @disable default construction).
Except for nested structs :) They have the default constructor
and their .init is not a valid state: has null context pointer.
More information about the Digitalmars-d-learn
mailing list