You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: document/core/binary/modules.rst
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -139,6 +139,7 @@ $${grammar: {Btypesec Btype}}
139
139
pair: binary format; import
140
140
pair: section; import
141
141
.. _binary-import:
142
+
.. _binary-imports:
142
143
.. _binary-importdesc:
143
144
.. _binary-importsec:
144
145
@@ -148,7 +149,10 @@ Import Section
148
149
The *import section* has the id 2.
149
150
It decodes into the list of :ref:`imports <syntax-import>` of a :ref:`module <syntax-module>`.
150
151
151
-
$${grammar: {Bimportsec Bimport}}
152
+
$${grammar: {Bimportsec Bimports Bimport}}
153
+
154
+
.. note::
155
+
The encoding of :ref:`imports <binary-imports>` beginning with ${:0x01 0xFF} allows multiple imports to be expressed without repeating the module name. ${:0x01 0xFF} decodes as an invalid :ref:`name <binary-name>` for compatibility with older implementations.
152
156
153
157
154
158
.. index:: ! function section, function, type index, function type
0 commit comments