According to Kevin A. Foss:
EP does have an 'otherwise' feature and my reading of 10206:6.9.3.5 is that like BP's "else" usage, "otherwise" doesn't require a begin/end for statement sequences either.
I agree about how you read ISO-10206:6.9.3.5. It is like BP, just with `otherwise' instead of `else'. Without a `:' after `otherwise'.
So GNU Pascal was wrong here from the very beginning. Unless there are other compilers to keep compatibility with, I will change that.
Peter
Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer peter.gerwinski@uni-essen.de - http://home.pages.de/~peter.gerwinski/ [971005] maintainer GNU Pascal [971001] - http://home.pages.de/~gnu-pascal/ [971005]
On Tue, 7 Oct 1997, Peter Gerwinski wrote:
According to Kevin A. Foss:
EP does have an 'otherwise' feature and my reading of 10206:6.9.3.5 is that like BP's "else" usage, "otherwise" doesn't require a begin/end for statement sequences either.
I agree about how you read ISO-10206:6.9.3.5. It is like BP, just with `otherwise' instead of `else'. Without a `:' after `otherwise'.
So GNU Pascal was wrong here from the very beginning. Unless there are other compilers to keep compatibility with, I will change that.
Hi Peter!
oops...
I indeed did not notice that
case-statement-completer = 'otherwise' statement-sequence
But you could keep the optional colon after 'otherwise', for compatibility, even though 10206 does not require it.
Juki jtv@hut.fi