@property - take it behind the woodshed and shoot it?
Adam Wilson
flyboynw at gmail.com
Fri Jan 25 09:12:04 PST 2013
On Fri, 25 Jan 2013 05:00:32 -0800, Jacob Carlborg <doob at me.com> wrote:
> 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"
>
This, for the love of all that is good in the world, a million times this!
--
Adam Wilson
IRC: LightBender
Project Coordinator
The Horizon Project
http://www.thehorizonproject.org/
More information about the Digitalmars-d
mailing list