[Issue 1192] broken overridden-function parameter list matching

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 26 19:34:50 PDT 2007


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





------- Comment #1 from ddparnell at bigpond.com  2007-04-26 21:34 -------
I don't think that this is a bug as such.

Your code has the signature (long, int).
The library has two signatures (long, uint) and (ulong, uint) and because of
D's integer promotion rules, your code matches both the library signatures.
Thus D says its ambiguous and it needs your help to choose which one to call.

The usual cause of this is when using literals without type qualifiers. If that
is not the case then use casts. Use could also use const identifiers to improve
readibility ...

  const uint base_HEX = 16;
  char[] XX = toString( somenumber, base_HEX);



-- 



More information about the Digitalmars-d-bugs mailing list