digitalmars.D.bugs - [Issue 6706] New: 'inout' is accepted in foreach, but apparently ignored
- d-bugmail puremagic.com (29/29) Sep 21 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6706
- d-bugmail puremagic.com (15/15) Jan 30 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6706
http://d.puremagic.com/issues/show_bug.cgi?id=6706 Summary: 'inout' is accepted in foreach, but apparently ignored Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: clugdbug yahoo.com.au --- Comment #0 from Don <clugdbug yahoo.com.au> 2011-09-21 04:10:10 PDT --- This is fail253.d from the test suite. It prints "holahola". Changing inout into ref restores the original check in the test suite -- but I don't think this should compile. import std.stdio; void main() { foreach (i; 0 .. 2) { foreach(inout char x; "hola") { printf("%c", x); x = '?'; } } } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 21 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6706 yebblies <yebblies gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies gmail.com Platform|Other |All Resolution| |WORKSFORME OS/Version|Windows |All --- Comment #1 from yebblies <yebblies gmail.com> 2012-01-31 18:49:50 EST --- This doesn't compile any more. (dmd 2.058) It was probably fixed with the other inout bugs. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 30 2012