L505 wrote:

> {$define {:= begin} //this works
> {$define }:= end. }  //this doesn't work
> {$define }:= end; }  //this doesn't work

Are you sure that the first example really works? It might do somehting
unexpected, even if the compiler doesn't complain.

The problem with "{" and "}" is the conflict between these characters as
delimiters of comments (the whole directive), and their use as
identifiers inside the directives.

As soon as you've redefined the meaning of "{" in the first line, it
most probably becomes impossible to add any further compiler directive,
because these start with exactly that redefined character!

DoDi



_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to