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