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

Florian Klaempfl Florian.Klaempfl at gmx.de
Fri Aug 2 14:16:39 CEST 2002


At 11:34 02.08.2002 +0200, you wrote:


>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,

This isn't 100 per cent correct ;) The binary format of 1.0.4 ppus and 1.0.4
ppus is the same.  The point is that the system unit interface changed
slightly, thus the ppu for the system unit of 1.0.4 and 1.0.6 is different,
i.e. the indizies for the types, vars, procedures in the system unit changed
from 1.0.4 to 1.0.6

>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 :)
>
>
>Jonas
>
>
>_______________________________________________
>fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
>http://lists.freepascal.org/mailman/listinfo/fpc-pascal






More information about the fpc-pascal mailing list