<div dir="ltr">2013/2/4 Andrei Alexandrescu <span dir="ltr"><<a href="mailto:SeeWebsiteForEmail@erdani.org" target="_blank">SeeWebsiteForEmail@erdani.org</a>></span><br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im"><span style="color:rgb(34,34,34)">We need to add this to the proposal. There are two schools of thought here:</span><br>
</div>
<br>
1. Make properties emulate regular variables as much as possible. In that case &a.p is the same as &(a.p), i.e. it applies to the returned value. (One counter-argument here is that properties should seldom return a reference because that breaks encapsulation.)<br>

<br>
2. Allow people to do whatever they need to do without much aggravation. In that case &a.p obeys the normal rules of taking a method's address, and &(a.p) applies to the returned value.<br>
<br>
I favor (2) and put it in <a href="http://wiki.dlang.org/DIP23" target="_blank">http://wiki.dlang.org/DIP23</a>. Will talk to Walter.</blockquote><div><br></div><div style>I have thought about the problem, and filed an enhancement.</div>
<div style><a href="http://d.puremagic.com/issues/show_bug.cgi?id=9062">http://d.puremagic.com/issues/show_bug.cgi?id=9062</a><br></div><div><br></div><div style>But, Walter disagreed against it.</div><div style><a href="http://d.puremagic.com/issues/show_bug.cgi?id=9062#c13">http://d.puremagic.com/issues/show_bug.cgi?id=9062#c13</a><br>
</div><div style><br></div><div style> Kenji Hara</div></div></div></div>