<div dir="ltr">2013/2/3 Steven Schveighoffer <span dir="ltr"><<a href="mailto:schveiguy@yahoo.com" target="_blank">schveiguy@yahoo.com</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">On Sun, 03 Feb 2013 07:16:17 -0500, Steven Schveighoffer <<a href="mailto:schveiguy@yahoo.com" target="_blank">schveiguy@yahoo.com</a>> wrote:<br>
<br>
<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">
On Sun, 03 Feb 2013 03:16:08 -0500, Andrei Alexandrescu <<a href="mailto:SeeWebsiteForEmail@erdani.org" target="_blank">SeeWebsiteForEmail@erdani.org</a><u></u>> wrote:<br>
<br>
<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">
Walter and I have had a discussion on how to finalize properties.<br>
<br>
<a href="http://wiki.dlang.org/DIP23" target="_blank">http://wiki.dlang.org/DIP23</a><br>
</blockquote>
<br>
I agree with everything in this.  This looks exactly like what I wanted a few days ago.  Thank you!<br>
<br>
One aspect not addressed is free-function properties:<br>
</blockquote>
<br></div>
I thought of one other problem with this proposal.  You can no longer get a delegate of a property.  Like it or not, there will be existing code that does get a delegate to properties (it is allowed now).<br>
<br>
I think we should provide a __traits accessor for this.  Otherwise, there is no way to port said code to the new style.<br></blockquote><div><br></div><div style>On the contrary with you, I was read that we no longer get an address of ref returned value by address-op. </div>
<div style><br></div><div style>@property ref int foo();</div><div style>static assert(is(typeof(&foo) == ref int function()));  // typeof does not return int*</div><div style><br></div><div style>If I am correct, there is no need for special enhancement like __traits.</div>
<div style><br></div><div style>Kenji Hara</div></div></div></div>