On Sun, 1 Jul 2018 16:51:08 -0600
Ryan Joseph <r...@thealchemistguild.com> wrote:

> 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:

That would be useful.

Mattias
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to