[Issue 4630] New: Primitive arguments to pure functions need not be converted to const
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Aug 11 19:38:55 PDT 2010
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 at puremagic.com
ReportedBy: dsimcha at yahoo.com
--- Comment #0 from David Simcha <dsimcha at 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: -------
More information about the Digitalmars-d-bugs
mailing list