Bug 13765 – not explicit template type name support

Status
RESOLVED
Resolution
LATER
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-11-22T16:29:59Z
Last change time
2022-12-16T14:25:33Z
Assigned to
No Owner
Creator
galaxylang

Comments

Comment #0 by galaxylang — 2014-11-22T16:29:59Z
1: i think template auto fun(T1,T2)(T1 x,T2 y){return x+y;} can rewrite to auto fun(x, y){return x+y;} especial in a local scope ,for the type x,y 's type are assured 2: method scalar 1 first,method with only one parameter rewrite for: auto fun(int a) fun(1) ======== fun 1 second,more then one for: auto fun(int a,int b,int c) fun(1,2,3) ======= fun(1)/*[got auto(int,int)]*/(2,3)==========fun 1 (2,3) ======== fun 1 2 3 fun(auto delegate(T) dg) will call as fun {exprs} 3: method scalar 2 for:auto fun(T...)(T a) fun(1)(2,3)...(/*here really invoked*/)
Comment #1 by razvan.nitu1305 — 2022-12-16T14:25:33Z
I cannot understand what this bug report is asking for.