I just checked that Free Pascal accepts the followig program: program keyw; var absolute, external, overload, override, virtual, abstract, reintroduce : integer; begin end . gpc -fdelphi says: keyw.p:2: error: `absolute' is a keyword in Borland Pascal keyw.p:2: error: `external' is a keyword in UCSD Pascal, Borland Pascal, keyw.p:2: error: traditional Macintosh Pascal keyw.p:2: error: `virtual' is a keyword in Object Pascal, Borland Pascal, keyw.p:2: error: traditional Macintosh Pascal It seems that all of them as treated as "directives" and hence may work also as variable names. Could some kind soul check how other compilers behave -- if the names are really directives then we should teach gpc to accept them as variable names in those dialects. -- Waldek Hebisch hebisch@math.uni.wroc.pl
participants (3)
-
Adriaan van Os -
Prof A Olowofoyeku (The African Chief) -
Waldek Hebisch