Permalink
Browse files
Parameter trait "is ref" is now "is parcel"
- Loading branch information...
Showing
with
1 addition
and
1 deletion.
-
+1
−1
S06-routines.pod
|
@@ -1923,7 +1923,7 @@ If you wish to allow the user to initialize an attribute by reference, |
|
|
you may either write your own initializer submethod explicitly, or
|
|
|
simply mark the attributes you want to work that way with C<is ref>:
|
|
|
|
|
|
- has $!age is ref; # BUILD will automatically use ref binding, not copy
|
|
|
+ has $!age is parcel; # BUILD will automatically use binding, not copy
|
|
|
|
|
|
To rename an attribute parameter you can use the explicit pair form:
|
|
|
|
|
|
0 comments on commit
a02e2e1