On Tuesday 12 November 2013 09:19:37 Michael Schnell wrote:
>
> I suppose here the new compiler would accept just "else begin". Does not
> look bad, but not a real improvement, IMHO.

I do more like to make the end's mandatory. Like

'if' BOOLEANEXPRESSION 'then'
[STATEMENT {';' STATEMENT}]
['else'
[STATEMENT {';' STATEMENT}]
]
'end'
"
if a = 1 then 
 b:= 88
end;
if b = 99 then
 a:= 12;
 if c = 13 then
  a:= 14
 end
else
 a:= 13
end;

while a > 10 do
 inc(b);
 dec(a)
end;
"
or so. Additional ';' as empty statements are allowed.

Martin

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to