Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2010-07

package keyword

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin

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?

Reply by email

Marco van de Voort
to Martin

In our previous episode, Martin said:

Show quoted text 12 lines
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.

Reply by email

Graeme Geldenhuys
to Martin: Hm, this may be one silly question... but I couldn't find docs on it, I hadn't come…
Martin wrote 7 lines
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'

...and there is 'library xxx' too

Regards,   - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/

Reply by email