On Mon, 04 Feb 2013 17:23:25 -0500, Andrei Alexandrescu <[email protected]> wrote:

On 2/4/13 11:01 AM, Steven Schveighoffer wrote:
@property int foo();

auto x = &foo; // error
int delegate() x = &foo; // ok

That's an interesting idea. I'm a bit weary about it though. At least for properties I'm inclined toward starting real tight with address-of disabled and relax the rules later.

Did you mean wary?

In any case, that certainly is a defensible plan. We do have the workaround of declaring an extra delegate (and someone probably can come up with some template magic which does it). If we make it illegal, it gives us the option of coming up with a good solution later if needed.

-Steve

Reply via email to