On Wed, 23 Mar 2022, Mattias Gaertner via fpc-devel wrote:
On Wed, 23 Mar 2022 22:20:38 +0700
Hairy Pixels via fpc-devel <fpc-devel@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.
I am all for merging the implementation of Ryan, but this is not my domain,
so one of the compiler people needs to look at it.
Michael.
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel