Frank Heckenbach wrote:
I think it's only "conditionally reserved" (like many keywords from various dialects are). E.g., `var Class: Integer;' seems to work. But I'm not sure in which situations it works and in which it doesn't (optimally, in all those situations where it can't be confused with a class type declaration).
Exactly. `class' is switched on as a keyword at the beginning of a `type' definition block, and switched off again afterwards. (It is intended to be used in about the same way as `record'.)
Since GPC does not yet have enough compatibility options ;-) we could introduce a compiler switch to permanently switch off specific keywords - in addition to the dialect used. What do you think?
Peter