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 8ee967d commit f8fc48fCopy full SHA for f8fc48f
S12-objects.pod
@@ -205,6 +205,12 @@ handled with lexical scoping in Perl 6. The fact that importation
205
is lexical by default also means that any names your class imports
206
are also private by default.
207
208
+In grammars, one cannot use grammar attributes so one can call
209
+a grammar rule from an unrelated grammar.
210
+One can emulate that behavior with lexically scoped grammars created
211
+within a closure. The lexical variables captured by the closure can then
212
+be used where grammar attributes would be.
213
+
214
=head2 Class composition
215
216
Class declarations (in particular, role composition) are strictly
0 commit comments