[Issue 7176] Lambda => syntax for function and methods too

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 20 08:59:19 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7176



--- Comment #12 from David Piepgrass <qwertie256 at gmail.com> 2012-07-20 08:59:15 PDT ---
(In reply to comment #11)
> (In reply to comment #10)
> > Why not just make bar_ public? You do not add any code to the getter nor to the
> > setter anyway.
> 
> Perhaps I want it to be virtual, to be able to override it in a subclass.

Yes, or, quite often I want to write a trivial getter but a nontrivial setter.
So I'd like just the getter for free. Also, when the interface is going to be
exported, even a trivial property should often be a property instead of a
field, to avoid breaking binary compatibility if one changes one's mind and
wants to make it a property later (actually this even affects source
compatibility--a property can't be passed by reference).

-- 
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