cobines schrieb:
2011/10/4 silvioprog <[email protected]>:
I'm needing to use in the uses clause, as I showed in my first
example. But in the uses clause the FPC is not accepting the
compilation.

I think it is not possible as it seems the constants are not declared
while in the interface uses section. You can use it in the uses
implementation section. Checked with FPC trunk too.

unit test2;
{$mode objfpc}{$H+}
interface
uses
  LCLVersion
  {$IF DECLARED(lcl_fullversion)}
  {$ERROR interface}
  {$ENDIF}
  ;

Perhaps the used unit is not parsed until a separator token (',' or ';') has been parsed. What if you try:

> uses
>   LCLVersion
    ,
>   {$IF DECLARED(lcl_fullversion)}
>   {$ERROR interface}
>   {$ENDIF}
    SysUtils
>   ;

DoDi


--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to