On 2/3/13 10:49 AM, Johannes Pfau wrote:
Am Sun, 03 Feb 2013 10:37:45 -0500
schrieb Andrei Alexandrescu<[email protected]>:
On 2/3/13 7:34 AM, Jacob Carlborg wrote:
On 2013-02-03 09:16, Andrei Alexandrescu wrote:
Walter and I have had a discussion on how to finalize properties.
http://wiki.dlang.org/DIP23
What about:
writeln = "asd";
Allowed or not?
No because writeln is not a property. For non-properties there's no
lowering of assignment.
Andrei
Then this should be removed in the proposal:
If a function returns a reference, then assignment through the
paren-less call should work:
unittest
{
static int x;
ref int fun1() { return x; }
fun1 = 42;
}
No. That's not a lowering.
Andrei