Frank Heckenbach wrote:
We could try to make `class' conditionally reserved only in the outermost scope, but I don't know how hard this would be (Peter?),
The problem is that the parser always reads one token in advance, so at the moment where it knows that the keyword must be disabled now, it might be read already.
and it wouldn't solve the issue completely. So I think I'd prefer `disable-keyword' as well...
I agree. I once hacked the `protected' keyword such that it can be used simultaneously with its meaning in Extended Pascal and as a new identifier:
procedure Foo (protected protected);
But this caused more confusion than good.
Peter