Permalink
Browse files

Remove variable traits "is readonly" and "is rw": they are not specced

Although there are spectests for "is readonly", I fail to see the use of
the attribute on a *variable* declaration.
  • Loading branch information...
1 parent 3328a1c commit 0818c24cab5ccab3aba4858b6f5d09df12760738 @lizmat lizmat committed Jul 28, 2013
Showing with 0 additions and 6 deletions.
  1. +0 −6 src/core/Variable.pm
View
@@ -37,12 +37,6 @@ multi trait_mod:<is>(Variable:D $v, :$default!) {
$v.var = $default; # make sure we start with the default
nqp::getattr($v.var, $v.var.VAR.WHAT, '$!descriptor').set_default($default);
}
-multi trait_mod:<is>(Variable:D $v, :$readonly!) {
- nqp::getattr($v.var, $v.var.VAR.WHAT, '$!descriptor').set_rw(!$readonly);
-}
-multi trait_mod:<is>(Variable:D $v, :$rw!) {
- nqp::getattr($v.var, $v.var.VAR.WHAT, '$!descriptor').set_rw($rw);
-}
multi trait_mod:<is>(Variable:D $v, :$dynamic!) {
# must be a noop for now, as apparently outer scope lexicals are *always*
# visible with the CALLER:: interface, even if they're *not* marked as

0 comments on commit 0818c24

Please sign in to comment.