[Issue 12488] foreach() should accept (and ignore) 'auto' in ForeachType

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Aug 24 08:03:50 PDT 2014


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

Ketmar Dark <ketmar at ketmar.no-ip.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #1341|0                           |1
        is obsolete|                            |

--- Comment #3 from Ketmar Dark <ketmar at ketmar.no-ip.org> ---
Created attachment 1387
  --> https://issues.dlang.org/attachment.cgi?id=1387&action=edit
new foreach-auto patch

2Andrej Mitrovic: i completely agree that 'auto' must be forced, but we can't
do this without breaking the code. hence i made 'auto' optional.

and i have a brand new patch, which allows even more useless things! now it
allows things like:

  foreach (; ...)
  foreach (auto; ...)
  foreach (n, auto; ...)

--


More information about the Digitalmars-d-bugs mailing list