SRL Archive - Lape

Syntax error in case gets "out of stack range"


bonsai

2014-08-06 16:44:39

If you accidentally put a ':' in the else of a case statement, you get a stack exception. No line number so it's very hard to debug.

program new;
begin
case random(5) of
1: writeln('hi');
2: writeln('bye');
else: writeln('bonk Exception in Script: Out of stack range');
end;
end.

nielsie95

2014-08-12 05:23:11

Thanks for the report. Will fix it :)