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
- [ ] 1. Let o = The resulting of calling f with (this) or (this, deep). -- Check f Function length (1 or 2 (deep=))
215
215
- [ ] 2. Throw a TypeError if o is undefined or null or o's constructor is not exactly this's constructor.
216
216
- [ ] 3. Return o
217
-
- [ ] A MUST: For Boolean, String and each Number data type's Class provide a pre-cached Function (self):* that returns self as is
217
+
- [ ] A MUST: For boolean, string and each Number data type's Class provide a pre-cached Function (self):* that returns self as is
218
218
- [ ] NOTE: To clarify, org.sx.meta.* should provide a function somewhere for retrieving a class's instance method as a Function that clearly takes the `this` receiver as a regular parameter.
219
219
- [ ] 2. Tuples
220
220
- [ ] 3. dynamic { } records
@@ -231,8 +231,7 @@
231
231
- [ ] 9. Return the result of calling f with (this) or (this, deep).
232
232
- [ ] DefaultCloneBehavior(self, deep)
233
233
- [ ] Let c = self.meta::class()
234
-
- [ ] Throw a TypeError if c.length != 0
235
-
- [ ] Let o = new c()
234
+
- [ ] Let o = Create a new instance of c without evaluating the constructor
236
235
- [ ] Copy instance fields from self to o
237
236
- [ ] If deep=true, map the field value to val?.generic::clone()
Copy file name to clipboardExpand all lines: src/serial.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ This feature may only be used with classes that are annotatated with either the
6
6
7
7
Variants of an algebraic data type do not need to specify the `Serial` or `XS` meta-data.
8
8
9
-
The default behavior while deserializing into a class, unless defining a self-attached `fromJSON` or `fromXML` method, is roughly:
9
+
The default behavior while deserializing into a class other than primitive types and certain global classes, unless defining a self-attached `fromJSON` or `fromXML` method, is roughly:
10
10
11
11
1. Create a new instance *o* of the class without evaluating the constructor
12
12
2. Let *fields* = Each *o*\[*k*\] field that is not configured with the `skip="true"` option.
0 commit comments