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.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal