Skip to content

Commit 532ce7e

Browse files
committed
Remove the phrase "virtual initialization".
1 parent 08387e7 commit 532ce7e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

proposals/NNNN-init-accessors.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ struct Proposal {
5252

5353
## Proposed solution
5454

55-
This proposal adds _`init` accessors_ to opt computed properties on types into virtual initialization that subsumes initialization of a set of zero or more specified stored properties, which allows assigning to computed properties in the body of a type's initializer:
55+
This proposal adds _`init` accessors_ to opt computed properties on types into definite initialization that subsumes initialization of a set of zero or more specified stored properties, which allows assigning to computed properties in the body of a type's initializer:
5656

5757
```swift
5858
struct Angle {
@@ -200,9 +200,9 @@ The semantics of an assignment inside of a type's initializer depend on whether
200200

201201
With this proposal, all of `self` is initialized if:
202202
* All stored properties are initialized on all paths, and
203-
* All computed properties with `init` accessors are virtually initialized on all paths.
203+
* All computed properties with `init` accessors are initialized on all paths.
204204

205-
An assignment to a computed property with an `init` accessor before all of `self` is initialized will virtually initialize the computed property and initialize all of the stored properties specified in its `initializes` clause:
205+
An assignment to a computed property with an `init` accessor before all of `self` is initialized will call the computed property's `init` accessor and initialize all of the stored properties specified in its `initializes` clause:
206206

207207
```swift
208208
struct S {
@@ -218,7 +218,7 @@ struct S {
218218
}
219219
```
220220

221-
An assignment to a stored property before all of `self` is initialized will initialize that stored property. When all of the stored properties listed in the `initializes` clause of a computed property with an `init` accessor have been initialized, that computed property is virtually initialized:
221+
An assignment to a stored property before all of `self` is initialized will initialize that stored property. When all of the stored properties listed in the `initializes` clause of a computed property with an `init` accessor have been initialized, that computed property is considered initialized:
222222

223223
```swift
224224
struct S {

0 commit comments

Comments
 (0)