Inno Setup Pascal 脚本中的多行注释
Multiline comments in Inno Setup Pascal Script
根据here,它指出:
Comments
The multiline comments are enclosed within curly brackets and
asterisks as (* ... *)
. Pascal allows single-line comment enclosed
within curly brackets { ... }
.
(* This is a multi-line comments
and it will span multiple lines. *)
{ This is a single line comment in pascal }
我一直使用 { ... }
多行。 Inno Setup Code
部分似乎没问题。但它是语法错误吗?
那篇文章是错误的。 (* ... *)
和{ ... }
都是多行注释,它们是等价的
Pascal(脚本)中的单行注释以 //
:
开头
// Single line comment
根据here,它指出:
Comments
The multiline comments are enclosed within curly brackets and asterisks as
(* ... *)
. Pascal allows single-line comment enclosed within curly brackets{ ... }
.(* This is a multi-line comments and it will span multiple lines. *) { This is a single line comment in pascal }
我一直使用 { ... }
多行。 Inno Setup Code
部分似乎没问题。但它是语法错误吗?
那篇文章是错误的。 (* ... *)
和{ ... }
都是多行注释,它们是等价的
Pascal(脚本)中的单行注释以 //
:
// Single line comment