digitalmars.D.bugs - [Issue 6491] New: Fully qualified enums in default arguments of non-template functions are generated with an extra 'module' keyword
- d-bugmail puremagic.com (33/33) Aug 14 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6491
- d-bugmail puremagic.com (13/13) Aug 15 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6491
http://d.puremagic.com/issues/show_bug.cgi?id=6491 Summary: Fully qualified enums in default arguments of non-template functions are generated with an extra 'module' keyword Product: D Version: D2 Platform: Other OS/Version: Mac OS X Status: NEW Keywords: ddoc Severity: minor Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: kennytm gmail.com --- Comment #0 from kennytm gmail.com 2011-08-14 09:08:54 PDT --- Example: -------------------- /// test void bug6491(string s = std.ascii.hexDigits) {} -------------------- Generated DDoc will read: -------------------- void bug6491(string s = module ascii.hexDigits); test -------------------- The 'module' should not exist, it should read 'string s = std.ascii.hexDigits'. This can also be seen at http://d-programming-language.org/phobos/std_stream.html#EndianStream. The problem doesn't exist if the function is templated. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 14 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6491 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla digitalmars.com Resolution| |FIXED --- Comment #2 from Walter Bright <bugzilla digitalmars.com> 2011-08-15 01:09:20 PDT --- https://github.com/D-Programming-Language/dmd/commit/9c23e891d9f58359aab67507261e26ee9340022e https://github.com/D-Programming-Language/dmd/commit/4b4662fd7b81493dac5f178467a506c07309060e -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 15 2011