Skip to content

Commit c0fc1af

Browse files
lefthzoffixznet
authored andcommitted
Describe how to look up class members (#1699)
Lookup within packages and the global namespace is described. Classes should be covered as well.
1 parent 58ec437 commit c0fc1af

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/Language/packages.pod6

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,14 @@ from a type name by use of the C<::> postfix:
179179
=for code :skip-test
180180
MyType::<$foo>
181181
182+
=head2 Class member lookup
183+
184+
Class attributes and methods are stored in the class meta object and can be looked up
185+
through by the L<lookup|/method/lookup> method.
186+
187+
=for code :skip-test
188+
Str.^lookup('chars')
189+
182190
=head1 Globals
183191
184192
Interpreter globals live in the C<GLOBAL> package. The user's program

0 commit comments

Comments
 (0)