[fpc-pascal] Changing variable in conditional

Henry Vermaak henry.vermaak at gmail.com
Wed Jan 9 14:01:36 CET 2013

On Wed, Jan 09, 2013 at 10:46:54AM +0000, Mark Morgan Lloyd wrote:
> I've got a vague recollection that since that episode the kernel
> maintainers have mandated a use of parentheses that helps the
> compiler pick up the distinction between an equality and an

Assignment inside if statements are usually frowned upon in the kernel.
gcc warns if you don't use parentheses, but I usually use parentheses
for readability, so there's always a danger of making a typo and not
getting a warning.  Can't remember the last time I've had a bug of this
sort, but that's probably because I'm extra vigilant with conditionals.
I think the decision to keep this syntax out of pascal is a good one.


More information about the fpc-pascal mailing list