[Issue 1596] op*Assign should return void

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 5 00:14:55 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=1596



--- Comment #4 from yebblies <yebblies at gmail.com> 2011-07-05 17:09:50 EST ---
(In reply to comment #3)
> It's valid in that Andrei seems to be requesting that op*Assign be _required_
> to return ref typeof(this), whereas currently, you can make it return whatever
> you want.

Well, reason 1 doesn't apply to returning ref typeof(this), and one valid use I
can think of for returning something else would be expression templates.
As it's four years old, I'd close this if it was my report, but I'll leave it
to Andrei to make a decision on this.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list