[Issue 2599] Two variadic parameters should be accepted

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 25 07:46:08 PST 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2599





------- Comment #6 from andrei at 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");
> > }
> 
> But where's it documented?  Are you sure it isn't a bug that DMD accepts it?

Not sure if Walter documented it. But I'm sure it's deliberately in there
because I asked for the feature and Walter took the time to implement it. As
far as I remember the feature was introduced in 2.015.


-- 



More information about the Digitalmars-d-bugs mailing list