Ryan Joseph
2018-07-01 22:51:08 UTC
Is there a way to make a constant for a list of chars which I can use in a case statement? I’ve got a bunch of code duplication happening I’d like to clean up.
const
TChars = ('[', ']', '(', ')', '{', '}', '=', ‘:’);
case c of
TChars:
...
Regards,
Ryan Joseph
_______________________________________________
fpc-pascal maillist - fpc-***@lists.freepascal.org
http://lists
const
TChars = ('[', ']', '(', ')', '{', '}', '=', ‘:’);
case c of
TChars:
...
Regards,
Ryan Joseph
_______________________________________________
fpc-pascal maillist - fpc-***@lists.freepascal.org
http://lists