首选的 Pascal 文件扩展名是什么?

发布于 2024-12-10 06:35:48 字数 195 浏览 5 评论 0原文

是:

  • .p
  • .pl
  • .pas
  • .pascal

还是其他?

如果您不使用首选扩展,各种 Pascal 编译器(尤其是 fpc)是否会崩溃?

Is it:

  • .p
  • .pl
  • .pas
  • .pascal

Or something else?

And will the various Pascal compilers (notably fpc) bork if you don't use the preferred extension?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

み青杉依旧 2024-12-17 06:35:48

Pascal 最常见的文件扩展名是 pas。至于FPC,它使用pp扩展名来表示FPC特定代码。

我认为没有“首选”扩展,但使用pas您不会错过。

The most common file extension for Pascal is pas. As for FPC, it uses the pp extension to denote FPC-specific code.

I think there is not a "preferred" extension, but you can't miss by using pas.

浮生未歇 2024-12-17 06:35:48

.pl 是一个坏主意,因为它会与 perl 和 prolog 程序冲突。

根据 维基百科 .pp.pas.inc 有效(最后一个用于包含文件)。

您还可以查看 FreePascal Wiki,其中将 .pas 描述为

带有 Pascal 代码的单元(通常用于存储在相应 *.lfm 文件中的表单)

.pp 作为

帕斯卡代码

我相信您应该根据您自己的喜好使用这两种代码之一。

.pl is a bad idea, because it will conflict with both perl and prolog programs.

According to the Wikipedia .pp, .pas, .inc are valid (last one for include files).

You may also check FreePascal Wiki, which describe .pas as

Unit with Pascal code (typically for a form stored in a corresponding *.lfm file)

and .pp as

Pascal code

I believe you should use one of these two depending of your own preferences.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文