Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix Parameter.named, add Parameter.slurpy
  • Loading branch information
Tadeusz Sośnierz committed Aug 2, 2011
1 parent c26878d commit 124bec3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/core/Parameter.pm
Expand Up @@ -27,7 +27,7 @@ my class Parameter {
}

method named() {
nqp::p6bool(nqp::isnull($!named_names))
!nqp::p6bool(nqp::isnull($!named_names))
}

method named_names() {
Expand All @@ -40,6 +40,14 @@ my class Parameter {
nqp::isnull($!named_names)
)
}

method slurpy() {
nqp::p6bool(
$!flags +& ($SIG_ELEM_SLURPY_POS
+| $SIG_ELEM_SLURPY_NAMED
+| $SIG_ELEM_SLURPY_BLOCK)
)
}

method optional() {
?($!flags +& $SIG_ELEM_IS_OPTIONAL)
Expand Down

0 comments on commit 124bec3

Please sign in to comment.