We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38a6482 commit 410a848Copy full SHA for 410a848
doc/Language/typesystem.pod6
@@ -162,6 +162,17 @@ methods from foreign objects.
162
say A.new.WHAT; # OUTPUT«(A)»
163
say A.new."WHAT"() # OUTPUT«ain't gonna happen»
164
165
+=head4 Methods in package scope
166
+
167
+Any C<our> scoped method will be visible in the package scope of a class.
168
169
+ class C {
170
+ our method packaged {};
171
+ method loose {}
172
+ };
173
+ dd C::.keys
174
+ # OUTPUT«("\&packaged",).Seq»
175
176
=head4 Setting Attributes with Namesake Variables and Methods
177
178
Instead of writing C<< attr => $attr >> or C<:attr($attr)>, you can save some
0 commit comments