[Issue 8075] New: Optional parameters should be able to refer to previous parameters

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 9 18:09:51 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8075

           Summary: Optional parameters should be able to refer to
                    previous parameters
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: wfunction at hotmail.com


--- Comment #0 from wfunction at hotmail.com 2012-05-09 18:11:13 PDT ---
void process(R)(R items, size_t maxCount = items.length) { }
unittest { process([1, 2, 3]); }


It would be great if this worked.

-- 
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