Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/Help/Topics/RECORD-statement.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../helpproject.xsl" ?>
<topic template="Default" modified="2025-09-29T19:53:34.265+02:00" lasteditedby="robert" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<topic template="Default" modified="2026-01-06T07:11:43.435+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<title>RECORD modifier</title>
<body>
<header>
Expand Down
3 changes: 3 additions & 0 deletions docs/Help_ZH-CN/Maps/table_of_contents.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1139,6 +1139,9 @@
<topicref type="topic" id="384615026623733" build="ALL" modified="2024-06-27T20:10:27.164Z" icon="0" href="command_PROCEDURE">
<caption translate="true">PROCEDURE 语句</caption>
</topicref>
<topicref type="topic" id="460285035215405" build="ALL" modified="2026-01-06T07:29:30.353Z" icon="0" href="RECORD-statement">
<caption translate="true">RECORD修饰符</caption>
</topicref>
<topicref type="topic" id="436997490436234" build="ALL" modified="2024-06-27T20:10:37.602Z" icon="0" href="command_STRUCTURE">
<caption translate="true">STRUCTURE 语句</caption>
</topicref>
Expand Down
17 changes: 17 additions & 0 deletions docs/Help_ZH-CN/Topics/RECORD-statement.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../helpproject.xsl" ?>
<topic template="Default" modified="2026-01-06T07:29:28.821+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<title>RECORD修饰符</title>
<body>
<header>
<para styleclass="Heading1">RECORD修饰符</para>
</header>
<para styleclass="Normal"></para>
<para styleclass="Normal"><text style="font-size:16pt; font-weight:bold; color:#0000ff;">目的</text></para>
<para styleclass="Normal"></para>
<para styleclass="Normal">Record修饰符(适用于类和结构体)指示编译器创建具有值相等性的特殊版本类型。这些类型通常用于表示数据模型。</para>
<para styleclass="Normal"></para>
<para styleclass="Normal">当Record类或Record结构体的所有成员都相同时,它们的两个实例将被视为相等。 &#160;</para>
<para styleclass="Normal">为实现此特性,编译器会为该类型生成一个特殊的Equals()运算符,用于比较类型中的全部字段。</para>
</body>
</topic>
12 changes: 10 additions & 2 deletions docs/Help_ZH-CN/Topics/User-defined-Types.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../helpproject.xsl" ?>
<topic template="Default" modified="2024-07-26T10:31:25.952+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<topic template="Default" modified="2026-01-06T07:30:37.463+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<title>自定义类型</title>
<keywords>
<keyword>CLASS</keyword>
Expand All @@ -22,7 +22,7 @@
<para styleclass="Normal"></para>
<para styleclass="Normal">该语言的以下关键字定义了用户定义的类型。</para>
<para styleclass="Normal"></para>
<para styleclass="Normal"><table styleclass="Default" rowcount="10" colcount="2">
<para styleclass="Normal"><table styleclass="Default" rowcount="11" colcount="2">
<thead style="vertical-align:top">
<td style="vertical-align:top; width:249px;">
<para styleclass="Normal"><text style="font-weight:bold;">类型</text></para>
Expand Down Expand Up @@ -79,6 +79,14 @@
<para styleclass="Normal">定义接口。</para>
</td>
</tr>
<tr style="vertical-align:top">
<td style="vertical-align:top; width:249px;">
<para styleclass="Normal"><link displaytype="text" defaultstyle="true" type="topiclink" href="RECORD-statement">RECORD</link></para>
</td>
<td style="vertical-align:top; width:882px;">
<para styleclass="Normal">记录类型是类或结构的一种特殊形式,专用于处理数据模型。记录类型支持值相等性。</para>
</td>
</tr>
<tr style="vertical-align:top">
<td style="vertical-align:top; width:249px;">
<para styleclass="Normal"><link displaytype="text" defaultstyle="true" type="topiclink" href="command_STRUCTURE">STRUCTURE</link></para>
Expand Down
6 changes: 3 additions & 3 deletions docs/Help_ZH-CN/Topics/command_CLASS.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../helpproject.xsl" ?>
<topic template="Default" modified="2024-11-10T21:26:09.415+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<topic template="Default" modified="2026-01-06T07:42:54.616+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<title>CLASS 语句(所有方言))</title>
<keywords>
<keyword>Binding of instance variables</keyword>
Expand Down Expand Up @@ -39,12 +39,12 @@
<para styleclass="Heading1">用途</para>
<para styleclass="Normal">向编译器声明一个类名。</para>
<para styleclass="Heading1">语法</para>
<para styleclass="Normal"><tab />[Attributes] [Modifiers] &#160;<text style="font-weight:bold;">CLASS</text> &lt;<text styleclass="Italic">idClass</text>&gt; [<text style="font-weight:bold;">INHERIT</text> &lt;<text styleclass="Italic">idClass</text>&gt;] <br/><tab />[<text style="font-weight:bold;">IMPLEMENTS</text> &lt;idInterface&gt;[, &lt;IdInterface2&gt;,..]</para>
<para styleclass="Normal"><tab />[Attributes] [Modifiers] [<text style="font-weight:bold;">RECORD</text>] <text style="font-weight:bold;">CLASS</text> &lt;<text styleclass="Italic">idClass</text>&gt; [<text style="font-weight:bold;">INHERIT</text> &lt;<text styleclass="Italic">idClass</text>&gt;] <br/><tab />[<text style="font-weight:bold;">IMPLEMENTS</text> &lt;idInterface&gt;[, &lt;IdInterface2&gt;,..]</para>
<para styleclass="Normal"><tab />[ClassMembers]</para>
<para styleclass="Normal"><tab /><text style="font-weight:bold;">END CLASS</text></para>
<para styleclass="Heading1">参数</para>
<para styleclass="List"><snippet src="__IncludeMethodModifiers" inline="false"/></para>
<para styleclass="List"></para>
<para styleclass="List">RECORG<tab />Record修饰符定义了一种具有值相等性的特殊结构。相关说明请参见关于记录类型的专题文档。</para>
<para styleclass="List"><snippet src="__includeIdClass" inline="false"/></para>
<para styleclass="List">INHERIT &lt;idClass&gt;<tab />现有类(称为超类)的名称,新类从该类继承方法和实例变量(HIDDEN 例外)。</para>
<para styleclass="List"></para>
Expand Down
5 changes: 3 additions & 2 deletions docs/Help_ZH-CN/Topics/command_STRUCTURE.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../helpproject.xsl" ?>
<topic template="Default" modified="2024-06-27T20:10:39.701+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<topic template="Default" modified="2026-01-06T07:24:01.445+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<title>STRUCTURE 语句</title>
<keywords>
<keyword>END STRUCTURE</keyword>
Expand All @@ -13,11 +13,12 @@
<para styleclass="Heading1">用途</para>
<para styleclass="Normal">向编译器声明一个结构名。</para>
<para styleclass="Heading1">语法</para>
<para styleclass="Normal"><tab />[Attributes] [Modifiers] <text style="font-weight:bold;">STRUCTURE </text>&lt;<text styleclass="Italic">idStructure</text>&gt; <br/><tab />[IMPLEMENTS &lt;idInterface&gt;[, &lt;IdInterface2&gt;,..]</para>
<para styleclass="Normal"><tab />[Attributes] [Modifiers] [<text style="font-weight:bold;">RECORD</text>] <text style="font-weight:bold;">STRUCTURE </text>&lt;<text styleclass="Italic">idStructure</text>&gt; <br/><tab />[IMPLEMENTS &lt;idInterface&gt;[, &lt;IdInterface2&gt;,..]</para>
<para styleclass="Normal"><tab />[StructureMembers]</para>
<para styleclass="Normal"><tab />END STRUCTURE</para>
<para styleclass="Heading1">参数</para>
<para styleclass="List"><snippet src="__IncludeMethodModifiers" inline="false"/></para>
<para styleclass="List">RECORD<tab />Record修饰符定义了一种具有值相等性的特殊结构。相关说明请参见关于记录类型的专题文档。</para>
<para styleclass="List">&lt;<text styleclass="Italic">idStructure</text>&gt;<tab />结构的有效标识符名称。 结构是一个实体,因此与其他实体共享相同的名称空间。 这就意味着不可能出现结构和全局变量同名的情况。</para>
<para styleclass="List"></para>
<para styleclass="List">IMPLEMENTS <text styleclass="Normal">&lt;idInterface&gt;</text><tab /><text styleclass="Normal">该结构实现的接口名称</text></para>
Expand Down
6 changes: 3 additions & 3 deletions docs/Help_ZH-CN/Topics/opt-ins.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../helpproject.xsl" ?>
<topic template="Default" modified="2025-03-24T22:15:33.983+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<topic template="Default" modified="2026-01-06T07:36:43.695+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<title>-ins</title>
<keywords>
<keyword>-ins</keyword>
Expand All @@ -14,11 +14,11 @@
<para styleclass="Heading2">语法</para>
<para styleclass="Code with box">-ins[+|-]</para>
<para styleclass="Heading2">参数</para>
<para styleclass="List"><text styleclass="Code Example">+ | - </text><tab />指定 + 或 -ins,可指示编译器自动包含标有 VulcanImplicitNameSpaceAttribute 的程序集的命名空间。</para>
<para styleclass="List"><text styleclass="Code Example">+ | - </text><tab />指定 + 或 -ins,可指示编译器自动包含标有 ImplicitNameSpaceAttribute 的程序集的命名空间。</para>
<para styleclass="Heading2">备注</para>
<para styleclass="Normal">类库可通过特殊属性进行编译:</para>
<para styleclass="Normal"></para>
<para styleclass="Code with box">[assembly: VulcanImplicitNamespaceAttribute( &quot;SomeNameSpace )]</para>
<para styleclass="Code with box">[assembly: ImplicitNamespaceAttribute( &quot;SomeNameSpace )]</para>
<para styleclass="Normal"></para>
<para styleclass="Normal">该属性告诉编译器,在搜索类时,位于该命名空间内的类应自动包含在内,就像在源代码中使用 #using SomeNameSpace 语句一样。</para>
<para styleclass="Normal"></para>
Expand Down