On Tuesday, 18 June 2013 at 09:28:04 UTC, Jonathan M Davis wrote:
On Tuesday, June 18, 2013 11:18:33 TommiT wrote:
On Tuesday, 18 June 2013 at 09:07:31 UTC, deadalnix wrote:
> Assignation aren't lvalues in general, so that is consistent.
I didn't see that coming. In C++ assignments are pretty
consistently mutable lvalues. Do you know why this is so in D?
Assignment operators definitely should return lvalues normally.
I don't know
why deadalnix would think otherwise. It's pretty much the norm
in C++, and I
see no reason for it to be different in D. No, it doesn't work
for all types,
but in the general case, it should.
I have no opinion on the subject. Simply stating facts about D
right now.