[Issue 21909] New: Scope-ness of parameters of function templates should be inferred

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 9 20:33:10 UTC 2021


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

          Issue ID: 21909
           Summary: Scope-ness of parameters of function templates should
                    be inferred
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: per.nordlow at gmail.com

Typically usage case is `arg` in

auto apply(alias fun, T)(T arg) {
    return fun(arg);
}

Another example is parameters of std.format.format(), std.stdio.write(), and
std.stdio.writeln().

--


More information about the Digitalmars-d-bugs mailing list