Thread overview | |||||
---|---|---|---|---|---|
|
August 12, 2010 [Issue 4630] New: Primitive arguments to pure functions need not be converted to const | ||||
---|---|---|---|---|
| ||||
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 --- Comment #0 from David Simcha <dsimcha@yahoo.com> 2010-08-11 19:38:54 PDT --- 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: ------- |
August 12, 2010 [Issue 4630] Primitive arguments to pure functions need not be converted to const | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Simcha | http://d.puremagic.com/issues/show_bug.cgi?id=4630 bearophile_hugs@eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_hugs@eml.cc --- Comment #1 from bearophile_hugs@eml.cc 2010-08-12 04:21:51 PDT --- See bug 2832 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 16, 2010 [Issue 4630] Primitive arguments to pure functions need not be converted to const | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Simcha | http://d.puremagic.com/issues/show_bug.cgi?id=4630 David Simcha <dsimcha@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #2 from David Simcha <dsimcha@yahoo.com> 2010-08-15 21:24:26 PDT --- 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: ------- |
Copyright © 1999-2021 by the D Language Foundation