[Issue 3511] ref return property confused with property setter
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Feb 5 05:46:49 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3511
Witold Baryluk <baryluk at smp.if.uj.edu.pl> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |baryluk at smp.if.uj.edu.pl
--- Comment #1 from Witold Baryluk <baryluk at smp.if.uj.edu.pl> 2010-02-05 05:46:48 PST ---
Yes, this is interesting "feature" but I think it should be marked to be so, be
some kind of attributed:
struct A {
private int x_ = 42;
@property
@ref_getter_as_setter
ref int x() { return x_; }
}
It still can be allowed without this properties, but then compile should emit
warning.
What do you think?
--
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