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

Simon Clubley clubley at remove_me.eisner.decus.org-Earth.UFP
Tue Mar 28 08:09:39 EDT 2023


On 2023-03-27, Arne Vajhøj <arne at vajhoej.dk> wrote:
> On 3/27/2023 6:19 PM, Johnny Billquist wrote:
>> 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.
>
> It gave warnings on zero int comparison with string and NULL. I
> would prefer an error.
>

Agreed, but you can at least turn warnings into errors in your build
procedures to force people to fix the warnings.

In Linux land, I _always_ use -Werror and the DEC C compiler has a
comparable qualifier as well.

Simon.

-- 
Simon Clubley, clubley at remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.



More information about the Info-vax mailing list