[Issue 16149] foreach_reverse can't handle index variable of type int

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Jun 11 05:11:01 PDT 2016


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

--- Comment #4 from Ketmar Dark <ketmar at ketmar.no-ip.org> ---
while deep inside of me i think the same thing, it still sounds wrong, i
believe. if we'll enable such use of `foreach_reverse`, this will be the only
exception in D where it allows assignment of `ulong` to `int` without explicit
cast. of course, this will allow me to write portable code without `cast(uint)`
on each `.length` usage, but... but i'd rather keep writing casts. ;-)

--


More information about the Digitalmars-d-bugs mailing list