[Issue 20846] New: Using previous arguments in default values

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 19 17:57:11 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=20846

          Issue ID: 20846
           Summary: Using previous arguments in default values
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: porton at narod.ru

I propose to make this compilable:

void f(int a, int b=a) { }

and even this:

void f(int a, int b=a*a) { }

--


More information about the Digitalmars-d-bugs mailing list