DMD 0.177 release
Stewart Gordon
smjg_1998 at yahoo.com
Thu Dec 14 18:47:43 PST 2006
Walter Bright wrote:
> Stewart Gordon wrote:
>> C'mon, what's your use case for being allowed to return something
>> other than the new value of a from the expression (a = b)?
>
> I don't have one. But I prefer to impose as few restrictions as
> possible, as people keep finding unanticipated cool new things to do. So
> I'd argue that there should be compelling case put forward to impose
> such a restriction, rather than wondering what one can do with the
> flexibility.
We already have what strikes the rest of us as a compelling case: what
we've just told you that returning from opAssign _should_ be able to do.
Stewart.
More information about the Digitalmars-d-announce
mailing list