[Issue 14783] Overlapping Arrays with Binary Operations on Itself

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Aug 31 05:23:49 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14783

--- Comment #4 from Denis Shelomovskij <verylonglogin.reg at gmail.com> ---
(In reply to Vladimir Panteleev from comment #3)
> > It produced an undefined result
> 
> In what situation would the result be not what the user expected? The test
> given here works as expected (produces 0,1,4).

I don't now, I can't even guarantee this case exists now because it will
require reading all the implementations in different assembly languages. The
fact an "undefined behaviour" situation produces an expected result for now
doesn't change anything. This functionality is (and was) not officially
supported by array functions implementation. Period.

--


More information about the Digitalmars-d-bugs mailing list