[fpc-devel] case is
nc-gaertnma at netcologne.de
Wed Mar 23 16:35:37 CET 2022
On Wed, 23 Mar 2022 22:20:38 +0700
Hairy Pixels via fpc-devel <fpc-devel at lists.freepascal.org> wrote:
> > Did you use multiple "is" or did you check for sorted and use one
> > loop?
> No it’s just like a the case of string syntax which checks for
> equality with ClassType so the order does matter. Maybe it’s not
> exactly like what Java has then.
Forget Java. The point is, that its "case" can be more than mere
syntactic sugar. It could give a nice speed up and the compiler warns
about unreachable statements.
More information about the fpc-devel