ambiguation between char[] and dchar[]

BCS ao at pathlink.com
Tue Jul 10 10:40:18 PDT 2007


Reply to Oskar,

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

except for the poor schmuck who gets 400 overloads and a 40 line scroll back 
buffer <G>





More information about the Digitalmars-d mailing list