Hi! Jonathan Ashley wrote:
[...] If one of the previous cases contains a case statement itself, the compiler falls over. For example:
----------- program TestCase(input, output);
var test: integer; subtest: integer;
begin test := 3; subtest := 5;
case test of 1: case subtest of 5: writeln("subvalue was 5") end otherwise writeln("value wasn't 1") end end.
What's the problem? For me, this program outputs "value wasn't 1" as it should be. If I change the first assignment to "test := 1" I get "subvalue was 5", so everything okay here, too. Peter -- Peter Gerwinski, Essen, Germany, http://home.pages.de/~Peter.Gerwinski/ Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-19990118 PGP key on request - 6C 94 45 BE 28 A4 96 - 0E CC E9 12 47 25 82 75 *** Vote against SPAM! ********* http://www.politik-digital.de/spam/ ***