@@ -138,17 +138,17 @@ compiler will check at the end of the current scope if the type is defined.
138
138
139
139
= head2 C < class >
140
140
141
- The C < class > declarator creates a compile time construct that is compiled
142
- into a type object. The latter is a simple Perl 6 object and provides methods
143
- to construct instances by executing initializers and sub methods to fill all
144
- attributes declared in a class and any parent class with values. Initializers
141
+ The C < class > declarator creates a compile time construct that is compiled into a
142
+ type object. The latter is a simple Perl 6 object and provides methods to
143
+ construct instances by executing initializers and sub methods to fill all
144
+ attributes declared in a class, and any parent class, with values. Initializers
145
145
can be provided with the declaration of attributes or in constructors. It's the
146
146
responsibility of the L < Metamodel::ClassHOW|/type/Metamodel::ClassHOW > to know
147
147
how to run them. This is the only magic part of building objects in Perl 6. The
148
- default parent type is C < Any > which in turn inherits from C < Mu > . The latter
148
+ default parent type is C < Any > , which in turn inherits from C < Mu > . The latter
149
149
provides the default constructor C < .new > which is named like this by convention.
150
- Aside from this, C < .new > does not carry any special meaning nor is treated in a
151
- special way.
150
+ Aside from this, C < .new > does not carry any special meaning nor is treated in
151
+ any special way.
152
152
153
153
For more information how to use classes see the L < Classes and objects|/language/classtut >
154
154
tutorial.
@@ -520,7 +520,7 @@ there may be performance implications, hence the pragmas.
520
520
say $s.mark
521
521
# OUTPUT: «answer»
522
522
523
- There are little limitations of what can be done inside the class fragment. One of
523
+ There are few limitations of what can be done inside the class fragment. One of
524
524
them is the redeclaration of a method or sub into a multi. Using added
525
525
attributes is not yet implemented. Please note that adding a multi candidate
526
526
that differs only in its named parameters will add that candidate behind the
0 commit comments