[fpc-devel] case is

Michael Van Canneyt michael at freepascal.org
Thu Mar 24 01:21:19 CET 2022

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

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.


More information about the fpc-devel mailing list