Continued looking at properties in D - interfaces and constraints

mikey via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Oct 12 13:54:55 PDT 2016


On Wednesday, 12 October 2016 at 20:49:40 UTC, mikey wrote:
>         @property void width(int width) in { enforce(width < 
> 0); }

Arg! Stupid, I switched those around to enforces at the last 
minute, the sign should have been the other way round! Anyway the 
output is the same either way.


More information about the Digitalmars-d-learn mailing list