properties - Why not the set/get syntax?
Cris
central_p at hotmail.com
Sat Apr 1 04:17:26 PST 2006
How would you implement a write only property?
So if you want ot have a read and write property you just have to add one read and
one write property?
> struct Foo
> {
> int data() { return m_data; } // read property
>
> int data(int value) { return m_data = value; } // write property
>
> private:
> int m_data;
> }
C#'s syntax feels a little bit more clear to me. I'm reading now the link you've
posted before.
More information about the Digitalmars-d
mailing list