[Info-vax] C limitations, was: Re: VMS process communication
Johnny Billquist
bqt at softjar.se
Wed Apr 26 18:19:14 EDT 2023
On 2023-04-23 01:59, Arne Vajhøj wrote:
> On 4/22/2023 7:47 PM, Arne Vajhøj wrote:
>> True. In C the isdigit function would be much better than a range check.
>>
>> Some other languages have similar functions, but not necessarily
>> doing what the programmer want.
>>
>> Java has a Character.isDigit method that return true for 350 chars.
>> But I am pretty sure that most Java developers are interested in
>> knowing if the char is in 0..9 not whether it is among those 350 chars.
>
> Of course C also got iswdigit - which on my system return true
> for 263 input values.
>
> But I don't think w is that popular in C.
wide chars are such a mess. I won't even try to discuss them. :-)
But I assume that the one i Java in the end is assuming you are dealing
with Unicode, and I would suspect that for the C version as well. And
Unicode is a mess.
Johnny
More information about the Info-vax
mailing list