Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
document X::Assignment::RO
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| =begin pod | ||
| =TITLE class X::Assignment::RO | ||
| =SUBTITLE Exception thrown when trying to assign to something read-only | ||
| class X::Assignment::RO is Exception { ... } | ||
| Code like | ||
| sub f() { 42 }; | ||
| f() = 'new value'; # throws an X::Assignment::RO | ||
| throws an exception of type C<X::Assignment::RO>. | ||
| =head1 Methods | ||
| =head2 method typename | ||
| method typename(X::Assignment::RO:D:) returns Str | ||
| Returns the type name of the value on the left-hand side | ||
| =end pod |