[fpc-pascal] New feature: IfThen() intrinsic

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Tue Feb 2 11:33:16 CET 2016


Martin Schreiber wrote:

> And it could be extended to
> "
> V:= case i1 of
>      1: 'one';
>      2: 'two';
>      else 'none';
>     end;

I'm rather less happy with this because of the difficulty of inserting 
inline assertions etc. to catch unexpected values.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]



More information about the fpc-pascal mailing list