Skip to content

Commit

Permalink
Minor grammar and reflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Nov 4, 2018
1 parent 4831e9a commit 40cd8da
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions doc/Language/typesystem.pod6
Expand Up @@ -138,17 +138,17 @@ compiler will check at the end of the current scope if the type is defined.
=head2 C<class>
The C<class> declarator creates a compile time construct that is compiled
into a type object. The latter is a simple Perl 6 object and provides methods
to construct instances by executing initializers and sub methods to fill all
attributes declared in a class and any parent class with values. Initializers
The C<class> declarator creates a compile time construct that is compiled into a
type object. The latter is a simple Perl 6 object and provides methods to
construct instances by executing initializers and sub methods to fill all
attributes declared in a class, and any parent class, with values. Initializers
can be provided with the declaration of attributes or in constructors. It's the
responsibility of the L<Metamodel::ClassHOW|/type/Metamodel::ClassHOW> to know
how to run them. This is the only magic part of building objects in Perl 6. The
default parent type is C<Any> which in turn inherits from C<Mu>. The latter
default parent type is C<Any>, which in turn inherits from C<Mu>. The latter
provides the default constructor C<.new> which is named like this by convention.
Aside from this, C<.new> does not carry any special meaning nor is treated in a
special way.
Aside from this, C<.new> does not carry any special meaning nor is treated in
any special way.
For more information how to use classes see the L<Classes and objects|/language/classtut>
tutorial.
Expand Down Expand Up @@ -520,7 +520,7 @@ there may be performance implications, hence the pragmas.
say $s.mark
# OUTPUT: «answer␤»
There are little limitations of what can be done inside the class fragment. One of
There are few limitations of what can be done inside the class fragment. One of
them is the redeclaration of a method or sub into a multi. Using added
attributes is not yet implemented. Please note that adding a multi candidate
that differs only in its named parameters will add that candidate behind the
Expand Down

0 comments on commit 40cd8da

Please sign in to comment.