[fpc-pascal] differences between .pp and .pas files
Michael Van Canneyt
michael at freepascal.org
Mon Feb 25 11:49:20 CET 2013
On Mon, 25 Feb 2013, Sven Barth wrote:
> On 25.02.2013 09:30, Michael Van Canneyt wrote:
>>
>>
>> On Mon, 25 Feb 2013, Sven Barth wrote:
>>
>>>
>>> Am 25.02.2013 07:14 schrieb "Eric Kom"
>>> <erickom at metropolitancollege.co.za>:
>>> >
>>> > Good day,
>>> >
>>> > Please what is a difference between .pp and .pas files extension?
>>>
>>> It's mostly a historical difference..pas are units that could
>>> (originally) be compiled with Turbo Pascal as well (which is why all
>>> units of the compiler use .pas) while .pp was designated for units
>>> that can only be compiled by FPC (which is why the old units of
>>> the RTL are called .pp). There is no technical difference between
>>> them. And for compatibility with Mac or Apple Pascal FPC also
>>> supports .p (this extension can be seen in the Photoshop 1.0 source
>>> for example).
>>>
>>> Today .pp is used for example for FPC's test files (also for new ones)
>>> out if habit.
>>
>> I think you are under a misapprehension. It is not 'out of habit'. I use
>> .pp for all my contributions, out of principle.
>
> Then let me rephrase my last sentence:
>
> Today .pp is used for example for FPC's test files (also for new ones) either
> out of habit or out of principle.
>
> Better now? :)
You are taking this far too serious :-)
But as a tip:
if the code is for FPC only, use .pp.
It's more efficient, because the compiler first looks for .pp files, only then .pas.
Michael.
More information about the fpc-pascal
mailing list