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

Martok listbox at martoks-place.de
Fri Jul 5 11:08:52 CEST 2019


Am 05.07.2019 um 02:52 schrieb Michael Van Canneyt:

> With this sentence you forbid storing or communicating enumerated values in any way: 
> file, database, over network. It can be used only in a computer program and never
> leave the context of the running program under any form. Because as soon as
> it is somehow communicated, there is a chance it becomes invalid in return
> communication.

This is the conclusion from Jonas' arguments, which he explicitly confirmed when
we had the discussion two+ years ago.

You're also missing another important type of 'communication': calling non-FPC
APIs or even just FPC libraries of possibly different version (see: Run-Time
Packages!)

Anything that even looks like a subrange cannot be used for these interfaces.

-- 
Regards,
Martok

Ceterum censeo b32079 esse sanandam.



More information about the fpc-devel mailing list