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

Steven Schveighoffer <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
                 OS|Linux                       |All

--- Comment #3 from Steven Schveighoffer <[email protected]> ---
I think it's a decent enhancement request. Most arrays are not going to exceed
int.max, and if they do, well, you wrote the stupid code!

For example, foreach(ubyte i, v; iota(500).array) is going to compile, and get
into an infinite loop. I think you should be able to make the same dumb mistake
with foreach_reverse :)

--

Reply via email to