Skip to content

Commit 51100d1

Browse files
committed
Apply delayed-init.md
1 parent 420e02d commit 51100d1

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

docs/_spec/05-classes-and-objects.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,6 @@ If this is not a template of a trait, then its _evaluation_ consists of the foll
9696
Mixin-evaluation happens in reverse order of occurrence in the linearization.
9797
- Finally, the statement sequence ´\mathit{stats}\,´ is evaluated.
9898

99-
###### Delayed Initialization
100-
This statement sequence constitutes the initialization code for an object or class after the superclass constructor invocation and the mixin-evaluation of the template's base classes as described above.
101-
Normally, this code is passed to a special hook, inaccessible to user code, which simply executes it.
102-
103-
However, in objects and classes (but not traits) which extend `scala.DelayedInit`, the initialization code is passed to a `delayedInit` method which can be overridden to implement arbitrary semantics.
104-
105-
```scala
106-
def delayedInit(body: => Unit): Unit
107-
```
108-
10999
### Constructor Invocations
110100

111101
```ebnf

0 commit comments

Comments
 (0)