Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2008-01

Extension .pp or .pas

7 messages · 7 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Damien Gerard

I am starting a new project and I worry about filename conventions. It is possible to use .pp or .pas for fpc source files.

Lazarus creates .pas files AFAIK. The project will be a console application.

Is there some existing conventions (from history or something else) or we totally don't care about ?

Damien Gerard Le temps n'a pas d'importance. Seul le code est important -- (f00ty)
Graeme Geldenhuys
to Damien Gerard

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.

FPC doesn't mind which one you use.

Regards,
- Graeme -

Damien Gerard wrote 25 lines
I am starting a new project and I worry about filename conventions. It is possible to use .pp or .pas for fpc source files. Lazarus creates .pas files AFAIK. The project will be a console application. Is there some existing conventions (from history or something else) or we totally don't care about ? -- Damien Gerard Le temps n'a pas d'importance. Seul le code est important -- (f00ty) _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/
Matt Emson
to Graeme Geldenhuys
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.

I had never seen ".pp" before FPC. In all the Delphi/Turbo Pascal I'd used, it was always ".pas". On the Mac it seems to have been ".p" quite regularly. Was ".pp" the UNIX standard?

M

Michael Van Canneyt
to Graeme Geldenhuys: As far as I know .pp is the old 'classical' file extension. .pas is the new more widely…
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

This allows you to make a distinction when you have lazarus/delphi installed: .pp opens with lazarus, .pas with delphi.

Michael.

Jonas Maebe
to Michael Van Canneyt
Michael Van Canneyt wrote 9 lines
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.

There is no unix ".pp" standard. .pp is an invention by Florian, indeed in analogy with .c -> .cc as John Coppens mentioned (although not specifically regarding pre/post-objects).

Jonas

Tomas Hajny
to Michael Van Canneyt: There is nothing 'classical' or 'new' about either extension. .pp was in accordance with…
Michael Van Canneyt wrote 12 lines
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