Implicit enum conversions are a stupid PITA

Simen kjaeraas simen.kjaras at gmail.com
Sat Mar 27 07:02:56 PDT 2010


KennyTM~ <kennytm at gmail.com> wrote:

> On Mar 26, 10 05:46, yigal chripun wrote:
>>
>> while it's true that '?' has one unicode value for it, it's not true  
>> for all sorts of diacritics and combine code-points. So your approach  
>> is to pass the responsibility for that to the end user which in  
>> 99.9999% will not handle this correctlly.
>>
>
> Non-issue. Since when can a character literal store > 1 code-point?

Not only that, but one does not routinely go about adding random
numbers to randomly chosen code points. When '?' + 3 is used, it's
because it was the best (fastest/easiest/most readable) way to do it.
Or somebody was just showing off, but that can be done in more
horrible ways.

-- 
Simen



More information about the Digitalmars-d mailing list