File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -105,13 +105,13 @@ X<|type object>
105
105
X < |defined >
106
106
X < |.defined >
107
107
108
- Declaring a class creates a I < type object > which, by default, is installed
109
- into the current package (just like a variable declared with C < our > scope).
110
- This type object is an "empty instance" of the class. You've already seen
111
- these in previous chapters. For example, types such as C < Int > and C < Str >
112
- refer to the type object of one of the Perl 6 built-in classes. The example
113
- above uses the class name C < Task > so that other code can refer to it later,
114
- such as to create class instances by calling the C < new > method.
108
+ Declaring a class creates a I < type object > which, by default, is installed into
109
+ the current package (just like a variable declared with C < our > scope). This
110
+ type object is an "empty instance" of the class. For example, types such as
111
+ C < Int > and C < Str > refer to the type object of one of the Perl 6 built-in
112
+ classes. The example above uses the class name C < Task > so that other code can
113
+ refer to it later, such as to create class instances by calling the C < new >
114
+ method.
115
115
116
116
Type objects are I < undefined > , in the sense that they return C < False > if you
117
117
call the C < .defined > method on them. You can use this method to find out if
You can’t perform that action at this time.
0 commit comments