Placing an or statement in one of the cases inside a case statement doesn't seem to work. It throws access violations.
Example, run this code:
Simba Code:program new;
{$define smart}
{$i srl-6/srl.simba}
const
someString = 'hello';
procedure thingy();
begin
case (someString) of
'hello': writeln('how are you?');
'goodbye': writeln('see you later!');
'this' or 'that': writeln('access violation?');
end;
end;
begin
thingy();
end.
It will throw an access violation. Comment out line 15 and it will no longer throw an access violation.
Why is this? Is or not allowed in cases?