Recent

Author Topic: File extensions, pas & pp ?  (Read 1538 times)

PeterBB

  • Jr. Member
  • **
  • Posts: 71
File extensions, pas & pp ?
« on: May 16, 2025, 08:55:54 pm »
I'm curious about the extension .pp 
I would expect Pascal code files to be .pas

Whats the use case for .pp ?
Are .pas & .pp interchangeable?

I'm aware of
https://wiki.freepascal.org/File_extensions
which suggests .pas for units, implying .pp for programs,
but I've seen many units in Lazarus with extension .pp

I guess the extension is not that important,
I'm just wondering what the best practice is here.


silvercoder70

  • Full Member
  • ***
  • Posts: 190
    • Tim Coates
Re: File extensions, pas & pp ?
« Reply #1 on: May 17, 2025, 11:06:24 am »
.pp files are the same as .pas files except the extension is typically used to indicate the contents are not delphi compatible - at least that is my understanding.

(It's funny you asked this question as I had created a video for YouTube at the beginning of the week on fpc file types but because I also work and had other commitments in the last days I was only able to edit and upload today.)
🔥 Pascal Isn’t Dead -> See What It Can Do: @silvercoder70 on YouTube

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12269
  • FPC developer.
Re: File extensions, pas & pp ?
« Reply #2 on: May 17, 2025, 12:16:25 pm »
Turbo Pascal actually, as Delphi compatibility had barely started when it was introduced.  However it was more a self administrative help tool then a hard rule or so.


PeterBB

  • Jr. Member
  • **
  • Posts: 71
Re: File extensions, pas & pp ?
« Reply #3 on: May 28, 2025, 05:01:49 pm »
Thanks for the explanations. Maybe the wiki needs updating then?

I has assumed that .pp related to .ppu, in that a compiled pp gives a ppu,
but I gather now that is not the meaning of .pp.

Cheers,
Peter

wp

  • Hero Member
  • *****
  • Posts: 12871
Re: File extensions, pas & pp ?
« Reply #4 on: May 28, 2025, 11:25:55 pm »
Maybe the wiki needs updating then?
What's wrong with what's written on https://wiki.freepascal.org/File_extensions?
Quote
.pp    Pascal code

Thaddy

  • Hero Member
  • *****
  • Posts: 17198
  • Ceterum censeo Trump esse delendam
Re: File extensions, pas & pp ?
« Reply #5 on: May 29, 2025, 01:58:56 pm »
Note file extensions are basically opaque and do not mean much by itself. It can be even txt....
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12269
  • FPC developer.
Re: File extensions, pas & pp ?
« Reply #6 on: May 29, 2025, 02:26:58 pm »
Note file extensions are basically opaque and do not mean much by itself. It can be even txt....

For units it is more important, as they are autoloaded by the compiler searching one of those extensions

 

TinyPortal © 2005-2018