D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 13765 - not explicit template type name support
Summary: not explicit template type name support
Status: RESOLVED LATER
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-22 16:29 UTC by galaxylang
Modified: 2022-12-16 14:25 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description galaxylang 2014-11-22 16:29:59 UTC
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 RazvanN 2022-12-16 14:25:33 UTC
I cannot understand what this bug report is asking for.