Skip to content

Commit fd650b8

Browse files
committed
upd
1 parent feea697 commit fd650b8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

TODO

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
- [70%] Variables
2020
- [70%] Virtual variables
2121
- [70%] Methods
22-
- [x] Aliases
22+
- [x] Aliasesclo
2323
- [x] Generics
2424
- [x] Lexical scopes
2525
- [x] Default lexical scope
@@ -112,7 +112,7 @@
112112
- [ ] Object
113113
- [ ] shock_reflect::constructor()
114114
- [ ] clone() returns `this`
115-
- Default implementation clones most objects fine (records, tuples, arrays, maps and so on), but classes with a required constructor will require a custom clone() override.
115+
- Default implementation clones most objects fine (records, tuples, arrays, maps and so on), but user class instances are by default not cloned (returned as they are).
116116
- [ ] toString()
117117
- [ ] toLocaleString()
118118
- [ ] valueOf()

src/overview/clonage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Clonage
22

3-
The `[object Object].clone()` implementation clones tuples, arrays, maps and sets structurally; for `class` instances, the default implementation requires an *optional* constructor. You may override `clone` for a custom clonage implementation.
3+
The `[object Object].clone()` implementation clones tuples, arrays, maps and sets structurally; for `class` instances, the default implementation returns the instance as is. You may override `clone` for a custom clonage implementation.
44

55
```
66
object.clone()

0 commit comments

Comments
 (0)