generic + numeric + literals = abomination

so so at so.do
Sun Mar 28 02:05:16 PDT 2010


Everything comes to this...
Why "3" is an int?
Why "0.3 is a double?

I guess these constraints was there before generic coding comes out, and  
we are just stuck with it!
If these sound so naive, sorry about it, I don't know compiler/language  
history.

Thanks!

On Sun, 28 Mar 2010 12:29:17 +0400, bearophile <bearophileHUGS at lycos.com>  
wrote:

> so:
>
>> With one exception yes, i want all 3 test pass with your fix to implicit
>> cast.
>> You know, we are trying to write generic code.
>
> I don't understand your problem/needs, sorry.
>
> Bye,
> bearophile


-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


More information about the Digitalmars-d-learn mailing list