File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -621,6 +621,18 @@ but still aren't installed in a scope:
621
621
say %operations<square>.name; # square
622
622
say %operations<square>(8); # 64
623
623
624
+ Since it is a declarator, it can be applied anywhere anything is declared, for
625
+ instance for classes or even sigilless variables.
626
+
627
+ say anon class þ {}; # OUTPUT: «(þ)»
628
+ say anon sub þ { 42 }; # OUTPUT: «&þ»
629
+
630
+ Since these symbols are not installed in the scope, they can't be used by name.
631
+ They are useful, however, if they need to be assigned to an external variable
632
+ and they need to know their name themselves.
633
+
634
+
635
+
624
636
= head2 The C < state > declarator
625
637
626
638
C < state > declares lexically scoped variables, just like C < my > . However,
You can’t perform that action at this time.
0 commit comments