[fpc-devel] Dangerous optimization in CASE..OF
Marco van de Voort
marcov at stack.nl
Sun Jul 2 19:15:55 CEST 2017
In our previous episode, Tomas Hajny said:
> > Worse, tying it to range check would then have heaps of redundant checking
> > everywhere, not just enums.
>
> True. That's why I believe that Read from a (typed) file should perform
> such validation - but it doesn't at the moment, as mentioned in my e-mail
> in the other thread. :-(
That slows down needlessly IMHO. Or do you mean only in $R+?
Most will blockread records anyway.
More information about the fpc-devel
mailing list