[fpc-pascal] H2pas tool vs others, C header translation

Martok listbox at martoks-place.de
Wed Aug 23 10:19:46 CEST 2017


> It is perfectly predictable. Just do not store invalid values in enumeration variables. And invalid
> is everything not being declared. This is how FPC works and will work.
Aye. The point being, if the store operation is in a library (a getter, such as
mpfr_get_default_rounding_mode), there is just no way of absolutely enforcing
that - so the FPC side must be defensive. As you say, enums already contain
typing assumptions and are not meant to be defensive, so they can't be used
here. That's all I wanted to point out.




More information about the fpc-pascal mailing list