www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4878] New: Ddoc: Default arguments can break Ddoc output

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

           Summary: Ddoc: Default arguments can break Ddoc output
           Product: D
           Version: D1 & D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: johannespfau gmail.com


--- Comment #0 from Johannes Pfau <johannespfau gmail.com> 2010-09-17 07:15:37
PDT ---
Created an attachment (id=757)
test case

String default arguments of functions can still break the Ddoc output.

Example:
///a stray $(RPAREN)
void test(string a = ")") {}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 17 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4878



--- Comment #1 from Johannes Pfau <johannespfau gmail.com> 2010-09-17 07:18:53
PDT ---
Created an attachment (id=758)
Patch for dmd 2.049

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 17 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4878



--- Comment #2 from Johannes Pfau <johannespfau gmail.com> 2010-09-17 07:24:04
PDT ---
Note:

Phobos has workarounds for this issue in std.random, line 642 and 728 (svn,
revision 1977). These workarounds need to be revoked because this patch
preserves string arguments literally and therefore macros are not expanded
(which is the right thing, imho).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 17 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4878


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug yahoo.com.au
         Resolution|                            |FIXED


--- Comment #3 from Don <clugdbug yahoo.com.au> 2011-02-06 13:46:46 PST ---
Fixed 
https://github.com/D-Programming-Language/dmd/commit/4b18789b78048b6b8c40665d676b5fb2b6f33344

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 06 2011