V
4  
Tags
Attachments
Perl 6
Pugs Diagnostics

This page is for documenting diagnostic messages emitted by Pugs, along with hints about what causes them and how to address them.

Can't modify constant item

Sometimes variables are read-only, such as when they are declared in a subroutine signature
or as a class attribute:

sub foo ($a) {
 $a ~~ s/b/c/; # Boom!
}
foo('b');

You can make a read/write copy of the variable through assignent ($b = $a), or by using is copy to declare that you want a read/write copy of the variable, or is rw to declare you want the variable being passed in to be modified by reference.


 

Upload Files

Click "Browse" to find the file you want to upload. When you click "Upload file" your file will be uploaded and added to the list of attachments for this page.

Maximum file size: 50MB

 
 
 
File Name Author Date Uploaded Size

Save Page As

Enter a meaningful and distinctive title for your page.

Page Title:

Tip: You'll be able to find this page later by using the title you choose.

Page Already Exists

There is already a page named XXX. Would you like to:

Save with a different name:

Save the page with the name "XXX"

Append your text to the bottom of the existing page named: "XXX"

Upload Files

Click "Browse" to find the file you want to upload. When you click "Add file" this file will be added to the list of attachments for this page, and uploaded when you save the page.

 
 
 
Add Tags

Enter a tag and click "Add tag". The tag will be saved when you save the page.

Tag: 

Suggestions: