[fpc-pascal] Case statements without constants?
Martin
fpc at mfriebe.de
Mon Oct 29 11:28:47 CET 2018
On 29/10/2018 11:24, R0b0t1 wrote:
> I think it is important to differentiate between a language feature
> and its common implementation. Perhaps case statements with variables
> make sense? Of course, that doesn't mean anyone is going to add them.
"case" also includes a compile time check, that case-labels have no
duplicates.
Therefore using variables in place of case labels, would require changes
to the definition of what case does.
More information about the fpc-pascal
mailing list