Skip to content

Commit 3d3b2b8

Browse files
committed
doc is readonly
1 parent cd0f6ff commit 3d3b2b8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/Type/Signature.pod6

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,12 @@ C<Array> full of C<Scalar>s as described above, C<is raw> will instead cause
618618
the parameter to produce a C<List>. Each element of that list will be bound
619619
directly as raw parameter.
620620
621+
X<|trait,is readonly>
622+
To explicitely as for a read-only parameter use the C<is readonly> trait.
623+
Please note that this applies only to the container. The object inside can very
624+
well have mutator functions and Perl 6 will not enforce immutability on the
625+
attributes of the object.
626+
621627
Traits can be followed by the where clause:
622628
623629
sub ip-expand-ipv6($ip is copy where m:i/^<[a..f\d\:]>**3..39$/) { }

0 commit comments

Comments
 (0)