<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-text-flowed" style="font-family: -moz-fixed;
font-size: 14px;" lang="x-unicode">On 16.07.2017 19:24, Martok
wrote:
<br>
<blockquote type="cite" style="color: #000000;">The good thing
about case statements is that they tell me of every other
programmer error: missing elements (if used without else)
<br>
</blockquote>
<br>
Off-topic: how can I enable this compiler hint?
<br>
<br>
When compiling:
<br>
<br>
program Project1;
<br>
<br>
type
<br>
TEnum = (one, two);
<br>
var
<br>
A: TEnum;
<br>
begin
<br>
A := two;
<br>
case A of
<br>
one:
<br>
begin
<br>
<br>
end;
<br>
end;
<br>
end.
<br>
<br>
I don't get any kind of warning/hint.
<br>
<br>
Ondrej
<br>
</div>
</body>
</html>