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] _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal