digitalmars.D.bugs - [Issue 4630] New: Primitive arguments to pure functions need not be converted to const
- d-bugmail puremagic.com (22/22) Aug 11 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4630
- d-bugmail puremagic.com (10/10) Aug 12 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4630
- d-bugmail puremagic.com (12/12) Aug 15 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4630
http://d.puremagic.com/issues/show_bug.cgi?id=4630 Summary: Primitive arguments to pure functions need not be converted to const Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: dsimcha yahoo.com void fun(uint x) pure { pragma(msg, typeof(x)); // const(uint) } Implicitly converting x to const is completely pointless, since it's just a stack variable with no indirection whatsoever. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 11 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4630 bearophile_hugs eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_hugs eml.cc See bug 2832 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 12 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4630 David Simcha <dsimcha yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE Thanks, Bearophile. It's definitely a duplicate. *** This issue has been marked as a duplicate of issue 2832 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 15 2010