Skip to content

Commit 9da18b2

Browse files
committed
Verbiage tweaks
1 parent b80697a commit 9da18b2

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

doc/Type/Stash.pod

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
77
class Stash is Hash { }
88
9-
A C<Stash> is a hash that is used for symbol tables at the package scoped in
10-
Perl 6.
9+
A C<Stash> is a hash that is used for symbol tables at the package scoping level
10+
in Perl 6.
1111
12-
To get a Stash, you can all the C<.WHO> pseudo method on a package (because it
12+
To get a Stash, you can call the C<.WHO> pseudo-method on a package (because it
1313
answers the question I<who lives here?>), or if you write the package name as
1414
a literal, append two colons:
1515
@@ -29,10 +29,12 @@ functionality:
2929
say Boring::.keys.sort; # &package_sub Nested
3030
say Boring::<Nested>; # (Nested)
3131
32-
As the example above shows, lexicals and methods are not included in a Stash,
33-
since they do not live in the package table. (Methods have a separate method
34-
table, and are accessible through method calls or C<.can> and C<.^methods>,
35-
and lexicals live in a separate lexical pad, which is only from inside the
36-
scope).
32+
As the example above shows only "our"-scoped things appear in the C<Stash>
33+
(nested classes are "our" by default, but can be excluded with "my".) Lexicals
34+
and methods are not included in a Stash, since they do not live in the package
35+
table. Lexicals live in a separate lexical pad, which is only visible from
36+
inside the scope. Methods (in the case that the package is also a class) have
37+
a separate method table, and are accessible through introspection on the
38+
class itself, via C<.can> and C<.^methods>.
3739
3840
=end pod

0 commit comments

Comments
 (0)