[fpc-devel] [Suggestion] Enumeration range-check intrinsic

Michael Van Canneyt michael at freepascal.org
Sat Jul 13 21:47:52 CEST 2019



On Sat, 13 Jul 2019, Ben Grasset wrote:

> On Sat, Jul 13, 2019 at 2:37 PM Ondrej Pokorny <lazarus at kluug.net> wrote:
>
>> I do exactly the same - check the low/high bounds in a type helper :)
>> Yes, and I am tired of typing it as well :)
>>
>
> You can pretty easily write a generic function that will work on pretty
> much any enum for this, BTW:

No doubt, but this will lead to a bloated binary. I want less code (both
source and assembler), not more.

Michael.


More information about the fpc-devel mailing list