Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
When we have a handles that doesn't match any of the criteria where w…
…e can generate methods, add it as a fallback instead.
  • Loading branch information
jnthn committed Jun 20, 2010
1 parent 964d497 commit 13fabba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/glue/handles.pm
Expand Up @@ -16,7 +16,11 @@ class Rakudo::Guts {
when Pair {
add_handles_method_helper($metaclass, $attr_name, $expr.key, $expr.value);
}
default { die sprintf("add_handles_method can't handle %s in list", $expr.WHAT); }
default {
# None of the cases we can generate methods for matched, so
# instead we install it as a fallback.
$metaclass.add_handles_fallback($metaclass, $attr_name, $expr);
}
}
}
}

0 comments on commit 13fabba

Please sign in to comment.