"Marco Leise" <[email protected]> wrote in message 
news:[email protected]...
>Am 13.10.2011, 23:11 Uhr, schrieb Steven Schveighoffer 
><[email protected]>:
>> I think in order to disallow this, you have to disallow dchar = size_t.
>>
>> IMO, I think it's worth it.  It's very uncommon to create a dchar using 
>> an integral.
>>
>> -Steve
>
>I recently wrote JavaScript code that generates a Greek letter starting 
>with ? (alpha) from an integer. It's just the shortest way to do it that 
>works in most languages based on C syntax. I assume I could do it another 
>way.

Yes:

c = cast(char)123; // Or whatever code-unit desired

>Like initializing with a character and then incrementing by the index  of 
>the letter I want. 


Reply via email to