EstaAsignado: boolean;
efErrorEjecucion: a value from an enum (say: enum1) TEnum1 = (efErrorEjecucion, efError2...);
EstadoFiscalComoSet: a set from enum (say: set of enum1) [efErrorEjecucion, efError2...]
EstaAsignado and (not (efErrorEjecucion in EstadoFiscalComoSet))
is not the same as
EstaAsignado and (not efErrorEjecucion in EstadoFiscalComoSet)
In both FPC and Delphi the one that does it right for my needs is the top one.
In fact the second one can't be compiled in Delphi.
My questions are:
- Negating an enum has sense?
- Why the second code can be compiled in FPC and not in Delphi?