Inno Setup Pascal 脚本中的多行注释

问题描述 投票:0回答:1

根据这里指出:

#评论 multiline 注释包含在大括号内,并且 星号为

(* ... *)
。 Pascal 允许包含单行注释 在大括号内
{ ... }
.

(* This is a multi-line comments
   and it will span multiple lines. *)

{ This is a single line comment in pascal }

我一直在多行中使用

{ ... }
。在 Inno Setup
Code
部分似乎没问题。但这是不是语法不好?

comments inno-setup pascalscript
1个回答
3
投票

那篇文章是错误的。

(* ... *)
{ ... }
都是多行注释,它们是等价的。

Pascal(脚本)中的单行注释以

//
:

开头
// Single line comment

参见 https://www.freepascal.org/docs-html/ref/refse2.html

© www.soinside.com 2019 - 2024. All rights reserved.