[Issue 3075] void delegate(const(void)[]) should be implicitly convertable to void delegate(void[])

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 10 03:23:05 PDT 2009


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





--- Comment #14 from Sobirari Muhomori <maxmo at pochta.ru>  2009-07-10 03:23:04 PDT ---
> The request is for contravariance of parameter types, and this
> will not work in the general case because of function overloading and
> overriding (which rely on exact matching of parameter types). Making it work in
> a specific case is a kludge and will cause all kinds of problems in the future.

Strange. I thought overloading and overriding work in different ways, e.g.
foo(int) and foo(long) can be overloads, but not overrides.

-- 
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