On 09/06/2016 09:18 PM, John wrote:
    &(t.j = 10)  // shouldn't this return "ref int delegate(int)" ?

`&t.j` should and does. With `= 10`, it's definitely a call, just like `&t.x()`.

It would be nice to get this behavior fixed, so that it doesn't become
set in stone.

Unfortunately, it already kinda is. Just flipping the switch would break circa all D code in existence. That's deemed unacceptable by the leadership, as far as I know.

If this can even be fixed, it must be done very carefully. The -property compiler switch is currently being deprecated. Maybe it can be repurposed later on to change behavior to your liking. But that's at least a couple releases in the future, i.e. months, maybe years.

Reply via email to