Discussion:
[fpc-pascal] Extension .pp or .pas
Damien Gerard
2008-01-11 14:27:17 UTC
Permalink
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
***@shikami.org

Le temps n'a pas d'importance. Seul le code est important
-- (f00ty)
Graeme Geldenhuys
2008-01-11 14:45:48 UTC
Permalink
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 -
Post by 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)
_______________________________________________
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
2008-01-11 14:55:40 UTC
Permalink
Post by Graeme Geldenhuys
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
John Coppens
2008-01-11 15:07:48 UTC
Permalink
On Fri, 11 Jan 2008 14:55:40 +0000
Post by Matt Emson
Was ".pp" the UNIX standard?
Suspecting the analogy with .c and .cc, I guess it was .p in the non-OO
era and .pp with objects.

John
Michael Van Canneyt
2008-01-11 15:41:27 UTC
Permalink
Post by Graeme Geldenhuys
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
2008-01-11 17:09:18 UTC
Permalink
Post by Michael Van Canneyt
Post by Graeme Geldenhuys
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
2008-01-11 17:36:52 UTC
Permalink
Post by Michael Van Canneyt
Post by Graeme Geldenhuys
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

Loading...