Return ASCII value as uint

Jari-Matti Mäkelä jmjmak at utu.fi.invalid
Tue May 8 11:21:52 PDT 2007


okibi wrote:
> John Ohno Wrote:
>> uint toUint!(T)(T c) {
>>         return (cast(uint)c);
>> }
> 
> Well, that doesn't compile. Is the ! needed? Anyways, if I pass an "s" to
> that, it should return the ASCII value (115 I think), right?

That ! is a typo.


More information about the Digitalmars-d-learn mailing list