Kevin A. Foss
kfoss at mint.net
Mon Oct 6 13:17:54 CEST 1997
On Mon, 6 Oct 1997 00:27:19 +0200, Frank Heckenbach wrote:
>Bernhard Tschirren wrote:
>> I : Integer;
>> Case I Of
>> 1: WriteLn('One');
>> 2: WriteLn('Two');
>> Else WriteLn('Big');
> SP and EP (AFAIK) don't use "else" but
>"otherwise" in a "case" statement, so they don't apply here.
Actually SP doesn't have an else/otherwise/default/whatever you want to
call it technique for case statements. EP does have an 'otherwise'
feature and my reading of 10206:126.96.36.199 is that like BP's "else" usage,
"otherwise" doesn't require a begin/end for statement sequences either.
Or can someone tell if I am reading it wrong? (Note especially, the
>(If GPC behaves wrong with "otherwise", that's another thing, I don't know.)
Ironically, gpc doesn't compile it with an "otherwise" in there (at
least with 970714) -- which *would* be a bug (IMO), but I don't think
that is at all what the original poster was getting at.
Kevin A. Foss --- kfoss at mint.net
More information about the Gpc