On 2/3/13 7:49 AM, Steven Schveighoffer wrote:
On Sun, 03 Feb 2013 07:16:17 -0500, Steven Schveighoffer
<[email protected]> wrote:
On Sun, 03 Feb 2013 03:16:08 -0500, Andrei Alexandrescu
<[email protected]> wrote:
Walter and I have had a discussion on how to finalize properties.
http://wiki.dlang.org/DIP23
I agree with everything in this. This looks exactly like what I wanted
a few days ago. Thank you!
One aspect not addressed is free-function properties:
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).
I think we should provide a __traits accessor for this. Otherwise, there
is no way to port said code to the new style.
In the proposal &a.b gets the delegate of a property.
Andrei