Permalink
Browse files

[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.
1 parent 590d5a7 commit 57a5c0e1ceab1e53711700f3bbb1249aa84ada3f @masak masak committed Nov 16, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/November.pm
View
3 lib/November.pm
@@ -50,7 +50,8 @@ class November does November::Session does November::Cache {
$d.dispatch(@chunks);
}
- method view_page($page is rw='Main_Page') {
+ # RAKUDO: Should `is rw` work with constant defaults? (It doesn't.)
+ method view_page($page is copy = 'Main_Page') {
$page .= subst('%20', '_', :g);
unless $.storage.wiki_page_exists($page) {

0 comments on commit 57a5c0e

Please sign in to comment.