[fpc-pascal] case statement
Michael Van Canneyt
michael at freepascal.org
Fri Dec 15 10:33:30 CET 2023
On Fri, 15 Dec 2023, Adriaan van Os via fpc-pascal wrote:
> Note that the same ambiguity exists in the <exception-handler> syntax (and
> this is less well known)
>
> exceptionhandlers = [ exception-handler { ";" exception-handler } [ "ELSE"
> statement-list ] | statement-list ] .
> exception-handler = "ON" [ identifier ":" ] class-type-identifier "DO"
> statement .
>
> as <exception-handler> ends with a <statement> and the optional <"ELSE"
> statement-list> part start with "ELSE". Sloppy language design, I assume by
> Borland.
What exactly do you consider "sloppy" ?
The fact that the semicolon before the else is optional ?
Michael.
More information about the fpc-pascal
mailing list