Skip to content

[Correction] Appendix B & C.8 — fabricated 'not in' / 'is not' compound relational operators #43

Description

@NickHodges

Section: Appendix B (Operator Precedence Table), Appendix C.8 (RelOp production)

Current text:
RelOp = ... | 'in' | 'is' | 'not' 'in' | 'is' 'not' ;
(and the corresponding rows in the Appendix B precedence table)

Problem:
Object Pascal has no compound not in or is not operators. Negated membership/type-tests must be written as not (X in Y) and not (X is Y). This is fabricated syntax that would mislead a compiler implementer using this spec, which is the document's stated purpose.

Suggested fix:
Remove not in and is not from both the precedence table and the RelOp EBNF production.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationneeds-compiler-verificationClaim needs verification against the real Delphi compiler before fixing

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions