From d9f20370eb5fcb94dd2ada55ebba44d4c3d38953 Mon Sep 17 00:00:00 2001
From: James Clark
+If an
The order of the Record types
optional field.
individual-field-descriptor
specifies readonly
,
+then there is also a constraint that the field has its read-only bit set.
+Furthermore, the type of the field is the intersection of readonly
+and the type specified by the type-descriptor.
+individual-field-descriptor
s within a
record-type-descriptor
is not significant. Note that the delimited
identifier syntax allows the field name to be any non-empty string.
@@ -1567,6 +1573,12 @@ Record types
closed.
+If a record type descriptor is closed and every individual-type-descriptor
+specifies readonly
, then it describes a type that is a subtype of
+readonly
: a shape belongs to the type only if its read-only bit is
+set.
+
A default-value
specifies a default value for the field, which is
used when the record type descriptor is used to construct a mapping value but no
value is specified explicitly for the field. The type descriptor contains a