https://issues.dlang.org/show_bug.cgi?id=14783 --- Comment #3 from Vladimir Panteleev <thecybershadow at gmail.com> --- > 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). --