[fpc-pascal] implementation-part

Michael Van Canneyt michael at freepascal.org
Fri Dec 15 08:20:57 CET 2023



On Fri, 15 Dec 2023, Adriaan van Os via fpc-pascal wrote:

>
> The Freepascal Language Reference (version 3.2.0) states in section 16.2
>
> "As can be seen from the syntax diagram, a unit always consists of a 
> interface and an implementation part."
>
> and
>
> "Both the interface part or implementation part can be empty, but the 
> keywords Interface and implementation must be specified.
>
> However, this was changed when implementing macpas mode (or at least for the 
> macpas mode) in that the implementation part is no longer obligatory. This is 
> useful for units with (only) external declarations.

Really ?

Not being a macpas user, I was not aware of this. 
I will update the documentation.

Thank you for pointing it out.

Michael.


More information about the fpc-pascal mailing list