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 -- http://home.pages.de/~Peter.Gerwinski/ - G-N-U GmbH: http://www.g-n-u.de Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-20010308 GnuPG key fingerprint: 9E7C 0FC4 8A62 5536 1730 A932 9834 65DB 2143 9422 keys: http://www.gerwinski.de/pubkeys/ - AntiSpam: http://spam.abuse.net