06.09.2010 14:52, Florian Klaempfl wrote:
Am 06.09.2010 05:29, schrieb Hans-Peter Diettrich:
5) Some (parser) procedures modify current_tokenpos/filepos temporarily,
and restore the old values later. What's the purpose of such changes?
To get correct file positions in debugging code and error messages.
So every temporary change of current_tokenpos should be considered
wrong? According to your above description I'd make current_tokenpos a
read-only property of the scanner...
I'am not sure what e.g. generics do with it.
Generics need to replay tokens with their position for debugging purposes.
Best regards,
Paul Ishenin
_______________________________________________
fpc-devel maillist - [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel