www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9305] New: Ugly Ddoc for default template lambda expressions

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9305

           Summary: Ugly Ddoc for default template lambda expressions
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: peter.alexander.au gmail.com



12:41:57 PST ---
The Ddoc generated for this:

/**
foo()
*/
void foo(alias p = (a => a))() {}

is

void foo(alias p = delegate auto(__T1 a) { return a; } )();


Notice that the internal representation of the lambda is leaked into the Ddoc
(__T1).

Ideally, the Ddoc would be this:

void foo(alias p = (a => a))();

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 12 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9305


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic, pull



https://github.com/D-Programming-Language/dmd/pull/1481

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 13 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9305




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/2d6db80aa890f23644676dc023842b3c849082a7
fix Issue 9305 - Ugly Ddoc for default template lambda expressions

https://github.com/D-Programming-Language/dmd/commit/67ffded7e2635148347cdf312b878277501121be


Issue 9305 - Ugly Ddoc for default template lambda expressions

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 14 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9305


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 14 2013