[Issue 664] is(func T == function) ignores variadic arguments
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Dec 19 04:59:49 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=664
--- Comment #6 from Don <clugdbug at yahoo.com.au> 2011-12-19 04:59:44 PST ---
(In reply to comment #5)
> (3) Have function(char, ...) just not matching function(T) for any value of T.
> ... is a fundamentally different kind of thing from a type, so it doesn't seem
> to make sense to allow it as an element of a type tuple.
How does that solve the problem? The root cause is that is( ==function) assumes
that all of the function parameters can be returned in a tuple, but that isn't
true for ...
Or do you mean that is( x==function) should be an error if x has a variadic
parameter?
--
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