开发者

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

I have the construct:

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

in my source and it won't compile! It's got to be something stupid. The error is:

E1030 Invalid compiler directive: '$IFOPT'

at the first line, but it is the FINITEFLOAT it's complaining about. 开发者_运维知识库 You don't seem to be able to specify anything except the single letter directives like R+ etc as the argument of IFOPT.

Am I missing something here?


You are totally correct AFAICT. I don't use $IFOPT often but everytime I do this behaviour annoys me. I have no idea why this is implemented this way.

Edit: There's a Quality Central ticket for this.

Edit: There's a Quality Portal ticket for this.


True, you cant :( Thats because IFOPT considered as backward compatibility feature and doesnt work with any extended directives. eg: {$A2} can be set, but not retrieved back

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜