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

Jacob Carlborg doob at me.com
Fri Jan 25 05:00:32 PST 2013


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

> The one problem with your example is that you haven't defined a way to
> make the property read-only/write-only like in C#.

@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