@property and interfaces

BLS windevguy at hotmail.de
Tue Jun 29 05:38:21 PDT 2010


On 29/06/2010 14:08, Steven Schveighoffer wrote:
> Besides, try to do this in C#:
>
> @property int value() {return _x;}
> @property int value(int x) { return _x = x;}
> @property int value(string s) { return _x = to!int(s);}
>
> :)  D's properties are so much better...
>
> -Steve

Ok, convinced ;)


More information about the Digitalmars-d-learn mailing list