[fpc-pascal] Extension .pp or .pas

Tomas Hajny XHajT03 at mbox.vol.cz
Fri Jan 11 18:36:52 CET 2008


On Fri, January 11, 2008 16:41, Michael Van Canneyt wrote:
> On Fri, 11 Jan 2008, Graeme Geldenhuys wrote:
>
>> As far as I know .pp is the old 'classical' file extension.  .pas is
>> the new more widely know (I think) extension for Object Pascal.  I
>> prefer .pas personally.
>
> There is nothing 'classical' or 'new' about either extension.
>
> .pp was in accordance with unix standards.
> .pas was in use for dos/windows by Borland (tp/delphi).
>
> FPC normally uses .pp

Well, I'd say that the last statement may be slightly misleading, because
it depends on what is meant under "FPC", so just to make it 100% clear:
When referring to "FPC compiler", .pp and .pas can be used equally as
already mentioned by somebody else. Talking about "FPC project", .pp is
used for majority of source files in RTL and packages. However, even
within "FPC project", .pas is used for files which are supposed to be
compilable with other compilers (because these usually don't support .pp).
For mostly historical reasons, this category includes compiler sources,
because they were compilable/compiled with other compilers in the past.

Tomas





More information about the fpc-pascal mailing list