Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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.
  • Loading branch information...
commit 57a5c0e1ceab1e53711700f3bbb1249aa84ada3f 1 parent 590d5a7
Carl Mäsak masak authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/November.pm
3  lib/November.pm
View
@@ -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) {
Please sign in to comment.
Something went wrong with that request. Please try again.