On 13/11/2010 17:40, Sven Barth wrote:
On 13.11.2010 14:59, Martin wrote:
The illegal expression is ok.
But why saying that "Except" was expected? Imho that is misleading,
since the source can continue with anything else here
I can only assume the following:
Before an "except" or a "finally" the ";" is optional (like in
every(?) block). Thus after a statement without a ";" either a
"finally" or an "except" is expected and the compiler simply assumes
that it's in a "try...except" block first. Or it's just because
"except" is declared before "finally" in the token array which is kept
ordered by token length first and lexicographically second.
Ah that makes sense (the semicolon part).
indeed I was not bothered if it is except or finally...
Thanks
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel