ambiguation between char[] and dchar[]

Oskar Linde oskar.lindeREM at OVEgmail.com
Tue Jul 10 10:31:10 PDT 2007


BCS wrote:
> Reply to Oskar,
> 
>> mandel skrev:

>>> Test.d(158): function Test.put called with argument types:
>>> (char[4])
>>> matches both:
>>> Test.put(dchar[])
>>> and:
>>> Test.put(wchar[])

>> This is a flaw in DMD's error reporting. It only reports the two first
>> ambiguous matches. I've been confused by that before.
>>
> 
> How about:
> 
> Test.d(158): function Test.put called with argument types:
> (char[4])
> matches at least:
> Test.put(dchar[])
> and:
> Test.put(wchar[])

That simple change would remove the confusion. However, listing all 
matching overloads would be incredibly helpful at certain times.

-- 
Oskar



More information about the Digitalmars-d mailing list