[fpc-pascal] package keyword

Marco van de Voort marcov at stack.nl
Mon Jul 26 23:43:35 CEST 2010


In our previous episode, Martin said:
> Hm, this may be one silly question...
> 
> but I couldn't find docs on it, I hadn't come accross it before...
> 
> A file that should compile can start with:
> 'unit xxx;'
> 'program xxx'
> 
> but I found fpc also compiles
> 'package xxx; '
> 
> What dos it do? Where are the docs?

Probably not much. It is for Delphi compability, and more or less the
project file for packages  (*.dpk), just like .dpr is used for the
mainprogram. 

Packages are as of yet unimplemented, see
http://wiki.freepascal.org/packages

Besides unit,program,package there is also library btw.




More information about the fpc-pascal mailing list