[fpc-pascal] Using for-loop index variable after loop

Juha Manninen juha.manninen62 at gmail.com
Mon Oct 10 16:53:35 CEST 2016


On Mon, Oct 10, 2016 at 3:07 PM, Vojtěch Čihák <vojtech.cihak at atlas.cz> wrote:
> Hi, if you mean this:
> ...

Yes, that is one of them.
The code does not make sense in any case, regardless of "i"'s value.
Index for cActionListEditorUnknownCategory and
cActionListEditorAllCategory differ.
"i" cannot have both at the same time. Maybe the condition should be
"or", not "and".
Why does it not compare Name directly with
cActionListEditorUnknownCategory and cActionListEditorAllCategory
constants?

There are many similar fishy code blocks. I will sanitize some of them ...

Juha



More information about the fpc-pascal mailing list