@property not available for classes?

Shriramana Sharma via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jan 1 18:08:14 PST 2016


John wrote:

> It's nothing to do with the @property attribute. So you need to
> define a constructor. Also, use "new" when creating instances.

Thanks Simon and John. First actual usage of D classes and mistaken 
assumption that C++ syntax is valid. :-)

-- 
Shriramana Sharma, Penguin #395953


More information about the Digitalmars-d-learn mailing list