digitalmars.D.bugs - [Issue 6342] New: Tuple field access problem in pure function
- d-bugmail puremagic.com (28/28) Jul 18 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6342
- d-bugmail puremagic.com (10/10) Jun 18 2013 http://d.puremagic.com/issues/show_bug.cgi?id=6342
- d-bugmail puremagic.com (12/13) Jun 18 2013 http://d.puremagic.com/issues/show_bug.cgi?id=6342
http://d.puremagic.com/issues/show_bug.cgi?id=6342 Summary: Tuple field access problem in pure function Product: D Version: unspecified Platform: x86 OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: bearophile_hugs eml.cc DMD 2.054: import std.typecons; Tuple!(int, "x") foo() pure { int y1 = foo().x; int y2 = foo()[0]; return typeof(return)(0); } void main() {} test.d(3): Error: pure nested function 'foo' cannot access mutable data '_field_field_0' test.d(4): Error: no [] operator overload for type Tuple!(int,"x") -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 18 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6342 irritate <irritate gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |irritate gmail.com Issue does not occur for me on head revision, DMD v2.064. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 18 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6342 bearophile_hugs eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXEDIssue does not occur for me on head revision, DMD v2.064.Good. Closed. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 18 2013