[fpc-pascal] Changing variable in conditional
Mark Morgan Lloyd
markMLl.fpc-pascal at telemetry.co.uk
Tue Jan 8 12:55:39 CET 2013
Marco van de Voort wrote:
> In our previous episode, Krzysztof said:
>> I don't like a lot of C++ syntax but this one is interesting. You really
>> don't like it? :)
>
> It's the worst thing ever. 95% of the hard to find errors in C in my code
> are due to = vs == mixup.
Seconded. In fact, if assignment didn't propagate a value like that I'm
not sure a distinction would have to be made between (C-style) = and ==
or (Pascal-style) := and =
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the fpc-pascal
mailing list