@property not available for classes?

Jacob Carlborg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jan 3 11:25:57 PST 2016


On 2016-01-03 18:48, Steven Schveighoffer wrote:

> class constructor requirements are much different from struct
> constructor requirements. There's also no implicit constructor that
> initializes all members as there is for structs.

To clarify, there's a default (implicit) constructor that initializes 
all members to what they are set to in the class declaration. But you 
cannot pass in any arguments to the default constructor. Hmm, 
technically that might actually not be the constructor that initializes 
the members, not sure.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list