[Info-vax] C limitations, was: Re: VMS process communication

Johnny Billquist bqt at softjar.se
Mon Mar 27 18:19:35 EDT 2023


On 2023-03-27 15:21, Arne Vajhøj wrote:
> On 3/27/2023 8:27 AM, Simon Clubley wrote:
>> = for assignment, versus == for comparison. (At least it's not PHP 
>> however,
>> where you need to use === to get a sane comparison. :-))
> 
> C == is not that great either.

[...]

Not sure I understand what your issue with C == was here.
You got a bunch of warnings for comparing mismatching types, which was 
to be expected. I failed to see any problems beyond that.

This has nothing to do with == as such, but with with C type system. 
This is how the type system is defined to work.

One might argue that this is bad, but in this case, I would say it's 
pretty reasonable. (As opposed to the promotion of unsigned to signed 
that can happen, which we had a thread about a couple of weeks ago...)

   Johnny




More information about the Info-vax mailing list