Why doesn't {$ ifopt FINITEFLOAT ON} compile?

I have a construct:

{$ifopt FINITEFLOAT ON} {$message 'FINITEFLOAT option ON' } {$else } {$message 'FINITEFLOAT option OFF' } {$endif } 

in my source and it will not compile! It must be something stupid. Mistake:

E1030 Invalid compiler directive: '$ IFOPT'

on the first line, but this is the FINITEFLOAT he is complaining about. It seems you cannot specify anything other than single-letter directives such as R +, etc. As an argument to IFOPT.

Did I miss something?

+7
delphi syntax-error delphi-2006 compiler-options
source share
2 answers

You are completely right AFAICT. I often use $IFOPT , but every time I do this, it annoys me. I have no idea why this is implemented in this way.

Edit: Here is a quality issue for this .

+5
source share

True, you cannot :( Thats, because IFOPT is considered a backward compatibility function and does not work with any advanced directives, for example: {$A2} can be installed, but not brought back

+1
source share

All Articles