@property - take it behind the woodshed and shoot it?

Jacob Carlborg doob at me.com
Fri Jan 25 05:01:29 PST 2013


On 2013-01-24 23:48, Adam Wilson wrote:

> The syntax provides no way to define read-only or write-only properties.
> Other than that I love it, but I am a biased C# guy.

@property(get, set) int a;
@property(get) int b;
@property(set) int c;
@property int d; // same as "a"

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list