automatic int to short conversion - the HELL?

Sean Kelly sean at invisibleduck.org
Fri Sep 19 13:07:55 PDT 2008


Jarrett Billingsley wrote:
> On Fri, Sep 19, 2008 at 11:52 AM, Don <nospam at nospam.com.au> wrote:
>>
>> One of the biggest stupidities from C is that 0 is an int. Once you've done
>> that, you HAVE to have implicit conversions. And once you have implicit
>> conversions, you have to allow signed-unsigned comparision.
> 
> OK, then what's the solution?  "cast(int)0" everywhere?

I'd be inclined to say that Polysemous values are one possible solution.


Sean


More information about the Digitalmars-d-learn mailing list