Josef Templ wrote:How can a name (NEW) be a standard procedure AND a reserved word at the same time?
It can be either the one or the other, but not both. Or can it?
VAR, IN, & OUT are both
keywords &
reserved words, so maybe there is no problem with NEW being two things. But NEW is
not a reserved word (see para 3.5), so this question does not arise.
In the module
- Code: Select all
MODULE RdcReserved;
PROCEDURE Do*;
VAR
xxx : INTEGER;
BEGIN
END Do;
END RdcReserved.
I have replaced the identifier "xxx" with all the reserved words, and those that currently compile ok are: ABSTRACT, EMPTY, EXTENSIBLE, LIMITED.
Those that cause 1 (or more) compilation errors are: ARRAY, BEGIN, BY, CASE, CLOSE, CONST, DIV, DO, ELSE, ELSIF, END, EXIT, FOR, IF, IMPORT, IN, IS, LOOP, MOD, MODULE, NIL, OF, OR, OUT, POINTER, PROCEDURE, RECORD, REPEAT, RETURN, THEN, TO, TYPE, UNTIL, VAR, WHILE, WITH.