[fpc-pascal]Interface-only units (was: shared libraries interface)

Jonas Maebe jonas at zeus.rug.ac.be
Fri Aug 2 11:34:53 CEST 2002

On Fri, 2 Aug 2002, Full_Name wrote:

> One other point.. surely the interface is there just for the
> convenience of the developer - like a C header file.

No, it's mainly to guarantee portability between different compiler
versions. The problem is that the ppu files are compiler versino
dependent, so if you want to distribute a unit without the source, you
have to re-distribute it every time a new compiler version is released (if
the ppu format has changed at least), which is not very nice. With the
interface-only units, you distribute an object file and an interface and
people can use the unit, no matter which versio of the compiler they use
(in theory at least :)


More information about the fpc-pascal mailing list