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

Marco van de Voort marcov at stack.nl
Fri Aug 2 20:25:45 CEST 2002

> On Fri, 2 Aug 2002, Full_Name wrote:
> > Unless there is some way of verifying that the interface in untampered with (a
> > third file? a checksum?) and the compiler either will not compile the source or
> > at the very least issue a compiler warning, I'll not be using the feature
> > personally. There are some many better ways of doing this I think (another
> > idea, ADA uses 'specification/header' and 'body' to split the code.) Moving
> ADA always uses two files: one for the interface, one for the
> implementation. I doubt you can recompile the interface without
> recompiling the implementation as well.

Idem for Modula-2, though my compiler had a directive for a kind of
interface-only module, like Florian proposed.

Otherwise,  if the date of the interface file in the compiled module is
older than the one that is found, the compiler will ask for the
implementation, just like FPC.

More information about the fpc-pascal mailing list