Re: Compiler directives




Should they be avoided? Why?

I don't like $ifdef - it always leads to less readable code, and it can be abused to make *much* less readable code.


The other ones like $B- etc can be essential in some circumstances. A particular example is when you write components. It's a good practice to put all the required compiler directives in an inc file so that your components will compile properly no matter what options any of your users might change.



Cheers,
Jim Cooper

_____________________________________________

Jim Cooper    jcooper@xxxxxxxxxxxxx
              Skype : jim.cooper
              Singapore mobile: +65 9345 0024
Tabdee Ltd    http://www.tabdee.ltd.uk

TurboSync - Connecting Delphi to your Palm
_____________________________________________
.