[fpc-devel] Question to developers

Kirinn kirinn at mooncore.eu
Fri Sep 17 18:30:30 CEST 2021


On Fri, 17 Sep 2021 16:55:05 +0100
"J. Gareth Moreton via fpc-devel" <fpc-devel at lists.freepascal.org> wrote:

> Hi everyone,
> 
> I have a question for third-party developers, especially mathematical, 
> scientific and games programmers...
> 
> How often would you use a construct akin to "case x mod n of", where n 
> is a constant and not a power of 2?  I ask because while I wait for my 
> "(x mod n) = 0" optimisation to be approved, I've discovered that it 
> could be extended to cover remainders other than 0.
> ...
> 
> Gareth aka. Kit

As a kind of game programmer, I don't think I've ever used a case something
mod something. I'm not sure in what situation this construct would be
useful...

~Kirinn


More information about the fpc-devel mailing list