[Issue 664] is(func T == function) ignores variadic arguments

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 20 06:42:24 PST 2011


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



--- Comment #13 from Don <clugdbug at yahoo.com.au> 2011-12-20 06:42:22 PST ---
(In reply to comment #12)
> (In reply to comment #11)
> > and then (possibly*) provide some other mechanism for identifying 
> > if a function is C-style variadic.  is() expressions are just about 
> > the ugliest thing in the language already, I'm loathe to recommend 
> > making them even uglier.
> 
> Why only C-style variadics?  D-style variadics with typeinfo just as well need
> to be considered.  Of course, with typesafe variadics we can feasibly just keep
> the type and just discard the ... ....

You're right. Fortunately, I don't think it's any different.

-TypeTuple of the function parameter types
+TypeTuple of the function parameter types. For C- and D-style variadic
functions,
only the non-variadic parameters are included. For typesafe variadic functions,
the ... is ignored.

Can you improve on that?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list