Remus
Jacob Carlborg
doob at me.com
Thu Nov 22 07:18:38 PST 2012
On 2012-11-22 13:19, John Chapman wrote:
> I believe Jacob is referring to C#'s auto-implemented properties:
> http://msdn.microsoft.com/en-us/library/bb384054.aspx
>
> The compiler generates the get/set pair and backing store from the
> user's single-line declaration.
>
> So,
>
> @property int bar();
>
> would expand to:
>
> private int bar_;
>
> @property void bar(int value) {
> bar_ = value;
> }
>
> @property int bar() {
> return bar_;
> }
Yeah, that's what I wrote.
--
/Jacob Carlborg
More information about the Digitalmars-d-announce
mailing list