首选的 Pascal 文件扩展名是什么?
是:
.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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Pascal 最常见的文件扩展名是
pas
。至于FPC,它使用pp
扩展名来表示FPC特定代码。我认为没有“首选”扩展,但使用
pas
您不会错过。The most common file extension for Pascal is
pas
. As for FPC, it uses thepp
extension to denote FPC-specific code.I think there is not a "preferred" extension, but you can't miss by using
pas
..pl
是一个坏主意,因为它会与 perl 和 prolog 程序冲突。根据 维基百科
.pp
,.pas
、.inc
有效(最后一个用于包含文件)。您还可以查看 FreePascal Wiki,其中将
.pas
描述为和
.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
asand
.pp
asI believe you should use one of these two depending of your own preferences.