Felipe Monteiro de Carvalho wrote:
>> I'm not complaining, just saying that the source is sometimes hard to
>> figure out for some people, like me (I must say I did not went in it
>> that much).
> 
> The problem is not include files, the problem is that the code needs
> better comments and better documentation.
> 
>>> Includefiles are not evil. Sure Delphi doesn't use them much, but that
>>> doesn't mean there is something wrong with them when somewhat properly used.
>> Indeed, and they are probably most required because of all the GUI and
>> OS lazarus supports. I was just wondering if simplifying it is
>> possible; it might not in fact.
> 
> No, include files have nothing to do with multiple GUI / OS support.

They have. As well as they have in the fpc rtl/fcl. Just consider the FPC system
unit, stuffing everything into one file would lead to a huge, probably >100k
lines file with a lot of ifdefs which make things completely unmaintainable and
unreadable and modifications very error prone.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to