[fpc-devel] Circular references and forward declarations

Florian Klaempfl florian at freepascal.org
Tue Jan 5 19:06:42 CET 2010


Juha Manninen schrieb:
> On tiistai, 5. tammikuuta 2010 19:16:25 Florian Klaempfl wrote:
>> See e.g. the compiler, but how does a big source file hurt anyways?
>> Today, navigation is done by the IDE and cvs times are also gone when
>> big files were a problem to commit. I consider class reference refering
>> some external files not better than one big file if this is really
>> needed. Things being interwinded can also end in the same file.
> 
> Ok, that is a good point but then we are talking about a different thing 
> already. Now the question is whether a huge source file is a bad thing or not.
> IMO, the compiler should not force a programmer to make a 34 000 lines source 
> file (like VirtualTreeView has). 

I never looked at VirtualTreeView but I doubt that the 34k line source 
is a language problenm.

> Programmer should have a choice to split it 

Good languages prevent programms to do ugly things :)

> if he wants.

Then do the same as in C++ and put it in different include files.



More information about the fpc-devel mailing list