Skip to content

Commit e15d990

Browse files
committed
upd
1 parent ab1f7af commit e15d990

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

TODO

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
- [ ] 1. Let o = The resulting of calling f with (this) or (this, deep). -- Check f Function length (1 or 2 (deep=))
215215
- [ ] 2. Throw a TypeError if o is undefined or null or o's constructor is not exactly this's constructor.
216216
- [ ] 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
218218
- [ ] 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.
219219
- [ ] 2. Tuples
220220
- [ ] 3. dynamic { } records
@@ -231,8 +231,7 @@
231231
- [ ] 9. Return the result of calling f with (this) or (this, deep).
232232
- [ ] DefaultCloneBehavior(self, deep)
233233
- [ ] 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
236235
- [ ] Copy instance fields from self to o
237236
- [ ] If deep=true, map the field value to val?.generic::clone()
238237
- [ ] Return o

src/serial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This feature may only be used with classes that are annotatated with either the
66

77
Variants of an algebraic data type do not need to specify the `Serial` or `XS` meta-data.
88

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:
1010

1111
1. Create a new instance *o* of the class without evaluating the constructor
1212
2. Let *fields* = Each *o*\[*k*\] field that is not configured with the `skip="true"` option.

0 commit comments

Comments
 (0)