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
Copy file name to clipboardExpand all lines: README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -237,10 +237,11 @@ Be sure to continue to declare all ivars and methods inside the `Class` variable
237
237
238
238
`Class` instances could only be made possible by making`Class` a Swift`class` and not a`struct`, due to limitations in Swift's type system and several abstractions Swift imposes on the user. Therefore, they do not have the same underlying structure as`Object` does (that is,`Class` does not start with the`isa` defined by the`Object` declaration). To call a class method on a class, pass`.ref` as`this`:
239
239
240
-
```swift
241
-
_msgSend(Person.class.ref, "someClassMethod")
242
-
```
243
-
In general, use `class.ref` whenever you wish to treat a `Class` as an object.
240
+
```swift
241
+
_msgSend(Person.class.ref,"someClassMethod")
242
+
```
243
+
244
+
In general, use`class.ref` whenever you wish to treat a`Class` as an object.