Re: Compiler directives
- From: Jim Cooper <jcooper@xxxxxxxxxxxxx>
- Date: Tue, 31 Jan 2006 16:42:52 +0800
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.ukTurboSync - Connecting Delphi to your Palm _____________________________________________ .
- References:
- Compiler directives
- From: Abdullah Kauchali
- Compiler directives
- Prev by Date: Re: Opinion: Dell 20.1" LCD monitor or D2006 Pro?
- Next by Date: Re: Compiler directives
- Previous by thread: Re: Compiler directives
- Next by thread: Re: Compiler directives
- Index(es):