Skip to content
This repository
Browse code

[November] `is rw` should be `is copy`

Seems that nowadays, setting defaults makes paramters readonly despite
having an `is rw` trait. Whether this is correct or not is open for
debate. Marking with a '# RAKUDO' comment until we know more.
  • Loading branch information...
commit 57a5c0e1ceab1e53711700f3bbb1249aa84ada3f 1 parent 590d5a7
Carl Mäsak authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  lib/November.pm
3  lib/November.pm
@@ -50,7 +50,8 @@ class November does November::Session does November::Cache {
50 50
         $d.dispatch(@chunks);
51 51
     }
52 52
 
53  
-    method view_page($page is rw='Main_Page') {
  53
+    # RAKUDO: Should `is rw` work with constant defaults? (It doesn't.)
  54
+    method view_page($page is copy = 'Main_Page') {
54 55
         $page .= subst('%20', '_', :g);
55 56
 
56 57
         unless $.storage.wiki_page_exists($page) {

0 notes on commit 57a5c0e

Please sign in to comment.
Something went wrong with that request. Please try again.