Type inference and overloaded functions

bearophile bearophileHUGS at lycos.com
Wed Dec 11 18:58:31 PST 2013


Timothee Cour:

>> void fun(int[3]) {}
>> void main() {
>>     int[3] x = [1, 2, 3];
>>     fun(x); // OK
>>     fun([1, 2, 3]); // error
>>     fun([1, 2, 3]s); // OK
>> }

Sorry, there's no error there.


> yes, that was the prime motivation for DIP34,

It seems Hara has received your message:
https://d.puremagic.com/issues/show_bug.cgi?id=8903#c7

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list