digitalmars.D.bugs - [Issue 12488] New: foreach() should accept (and ignore) 'auto' in ForeachType
- d-bugmail puremagic.com (26/26) Mar 28 2014 https://d.puremagic.com/issues/show_bug.cgi?id=12488
- d-bugmail puremagic.com (11/11) Mar 30 2014 https://d.puremagic.com/issues/show_bug.cgi?id=12488
https://d.puremagic.com/issues/show_bug.cgi?id=12488 Summary: foreach() should accept (and ignore) 'auto' in ForeachType Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: ketmar ketmar.no-ip.org PDT --- Created an attachment (id=1341) patch against dmd commit 8e2b13b025626127e5e2a0fb90326e655f3deac8 here is the discussion: http://forum.dlang.org/thread/vesvrfaipppwtenleqjr forum.dlang.org summary: compiler should accept both foreach (v; smth) and foreach(auto v; smth) forms. this can be noncense from compiler writer PoV, but ordinary language user will not be confused by declaring variable without any type. this change will not break any existing code ('auto' is purely optional). patch attached (parser fix and two simple test cases). -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 28 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12488 Ketmar Dark <ketmar ketmar.no-ip.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ketmar ketmar.no-ip.org PDT --- ah, forgot to say that i hereby passing this patch to Public Domain (or licensing it under WTFPL if PD is not working in your country). -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 30 2014