Skip to content

Commit 1c85896

Browse files
committed
Typographical etc. corrections to glossary.pod
1 parent bb5cbc1 commit 1c85896

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

lib/Language/glossary.pod

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ Here C<f()> is a sub with one parameter, and since it has no explicit
3838
type, it is implicitly typed as C<Any>. The C<Junction> argument causes
3939
the C<f(1|2|3)> call to be internally executed as C<f(1)|f(2)|f(3)>,
4040
and the resulting junction is C<2|4|6>. This process of separating
41-
Junction arguments into multiple calls to a function is called
41+
junction arguments into multiple calls to a function is called
4242
I<autothreading>.
4343
4444
=head1 Instance
4545
4646
An I<instance> of a class is also called an I<object> in some other
47-
programming languages. It has a storage for attributes, and is often
47+
programming languages. It has storage for attributes and is often
4848
the return value of a call to a method called C<new>, or a literal.
4949
5050
Instances of most types are defined to be C<True>
@@ -65,29 +65,28 @@ e.g., C<defined($instance)> is C<True>.
6565
my $an_instance = A.new;
6666
say $an_instance.defined.perl;# defined($an_instance) works too.
6767
68-
Or to put it another way, a class has all the blueprint of methods and
69-
attributes, and an instance carries it forward into the real world.
68+
To put things another way, a class contains the blueprints of methods and
69+
attributes, and an instance carries it into the real world.
7070
7171
=head1 Invocant
7272
73-
The object on which a method is called is called the I<invocant> in Perl 6.
73+
The object upon which a method is called, is referred to as the I<invocant> in Perl 6.
7474
It is what C<self> refers to in a method.
7575
7676
say 'str'.uc; # 'str' is the invocant of method uc
7777
7878
=head1 Literal
7979
80-
A I<literal> is a piece of code that directly stands for a (often
81-
built-in) object, and also refers to the object itself.
80+
A I<literal> is a piece of code that directly stands for an (often
81+
built-in) object and also refers to the object itself.
8282
8383
my $x = 2; # the 2 is a literal
8484
say $x; # $x is not a literal, but a variable
8585
86-
8786
=head1 lvalue
8887
89-
An I<lvalue> or a I<left value> is anything that can appear on the left
90-
hand side of the assignment operator C<=>; anything you can assign
88+
An I<lvalue>, or a I<left value>, is anything that can appear on the left
89+
hand side of the assignment operator C<=>. It is anything you can assign
9190
to.
9291
9392
Typical lvalues are variables, private and C<is rw> attributes, lists
@@ -103,7 +102,7 @@ Examples of lvalues:
103102
has $.attrib is rw; $.attrib
104103
sub a is rw { $x }; a()
105104
106-
Examples of things that are not lvalues
105+
Examples of things that are not lvalues:
107106
108107
3 # literals
109108
constant x = 3; # constants

0 commit comments

Comments
 (0)