https://issues.dlang.org/show_bug.cgi?id=2599
Mathias LANG changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
https://issues.dlang.org/show_bug.cgi?id=2599
Andrei Alexandrescu changed:
What|Removed |Added
Version|unspecified |D2
--
http://d.puremagic.com/issues/show_bug.cgi?id=2599
s...@iname.com changed:
What|Removed |Added
CC||s...@iname.com
--- Comment #1 fr
http://d.puremagic.com/issues/show_bug.cgi?id=2599
--- Comment #2 from and...@metalanguage.com 2009-01-24 08:45 ---
(In reply to comment #1)
> How would you use such a thing?
>
> The trouble is that F!(int, char[], Object) in itself is ambiguous - does T1
> bind to int and T2 to (cha
http://d.puremagic.com/issues/show_bug.cgi?id=2599
--- Comment #3 from s...@iname.com 2009-01-25 08:54 ---
> When instantiated explicitly, all explicit arguments are eaten by
> T1. This is the purpose of the pattern: pass some explicit
> arguments, then deduce some more implicitly.
http://d.puremagic.com/issues/show_bug.cgi?id=2599
--- Comment #4 from and...@metalanguage.com 2009-01-25 09:09 ---
(In reply to comment #3)
> > When instantiated explicitly, all explicit arguments are eaten by
> > T1. This is the purpose of the pattern: pass some explicit
> > argu
http://d.puremagic.com/issues/show_bug.cgi?id=2599
--- Comment #5 from s...@iname.com 2009-01-25 09:37 ---
(In reply to comment #4)
> Try this at home:
>
> void fun(T1, T2)(T2 x)
> {
> }
>
> void main()
> {
> fun!(int)("a");
> }
But where's it documented? Are you sure it isn't
http://d.puremagic.com/issues/show_bug.cgi?id=2599
--- Comment #6 from and...@metalanguage.com 2009-01-25 09:46 ---
(In reply to comment #5)
> (In reply to comment #4)
> > Try this at home:
> >
> > void fun(T1, T2)(T2 x)
> > {
> > }
> >
> > void main()
> > {
> > fun!(int)("a");