Menu

#2 Enumerated types with excplicit values are treated as wrong

open
nobody
None
5
2003-01-03
2003-01-03
Anonymous
No

Take this sample of code and try to analyze it:

<code>
type
TShowExtractionData = (edNever = 5, edAlways,
edIfDealt);
</code>

You get message:
Expected RoundClose found '='
Expected SemiColon found,

both messages point to 'edNever = 5,'

Such a code is completely correct and wide used both
in my and Delphi source code.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB