[fpc-devel] Circular references and forward declarations

Michael Van Canneyt michael at freepascal.org
Wed Jan 6 13:00:02 CET 2010



On Wed, 6 Jan 2010, Juha Manninen wrote:

> On keskiviikko, 6. tammikuuta 2010 13:14:18 Michael Van Canneyt wrote:
>
>> Why ? Every class in 1 file is perfectly possible with include files, and 1
>> big unit file.
>
> Ok, include files seem to solve this problem.
> I don't know why they are not commonly used in Delphi programs as source
> files. It may be a culture or convention also, technically it should be
> possible with Delphi as well.

The Delphi compiler has no problems with include files, but the Delphi IDE
has; Include files - just like conditioanl defines - totally mess up all 
code tools. Probably the reason why they are not encouraged.

Michael.



More information about the fpc-devel mailing list