In addition, some languages treat enum are with consecutive values (without holes) as true enums, and enums with holes differently (less operations, or simply declare the operations not safe to non consecutive enums)fxm wrote:- In many languages, none integer variable is implicitly convertible to a ENUM instance (and reciprocally), this one being strongly typed (declaration equivalent to the ENUM qualified as EXPLICIT with FreeBASIC), and an explicit CAST is required for such a conversion.
E.g. Pascal/Delphi only added the enums with holes for Windows header translation purposes, they have no real use in the language.