Am 25.10.2010 10:25, schrieb Mark Morgan Lloyd:
The point I was trying to make- which I didn't do very well- was that if
something is usable in an ifdef if can be used to exclude code which is
syntactically wrong for the current compiler, or references public
properties which don't exist in the current LCL.

I don't think that you can do that if you're getting a value from
lclversion or whatever, the decision has- in effect- to be made at a
preprocessor level.

Did you know that you can use Pascal constants (and thus the constants defined by lclversion unit) in {$if ...} conditionals? For an example see the "Button1Click" method in examples/lclversion/Unit1.pas.

Regards,
Sven

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to