[Issue 7176] Lambda => syntax for function and methods too
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jul 20 05:37:45 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7176
Artem Borisovskiy <kolos80 at bk.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kolos80 at bk.ru
--- Comment #10 from Artem Borisovskiy <kolos80 at bk.ru> 2012-07-20 05:37:43 PDT ---
> class Foo
> {
> @property int bar;
> }
>
> Is lowered to this:
>
> class Foo
> {
> private int bar_;
>
> @property int bar () { return bar_; }
> @property int bar (int value) { return bar_ = value; }
> }
Why not just make bar_ public? You do not add any code to the getter nor to the
setter anyway.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list