Skip to content

Commit

Permalink
Revert re-imagined val() processing
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jan 4, 2020
1 parent 309d4e2 commit b770971
Show file tree
Hide file tree
Showing 5 changed files with 350 additions and 611 deletions.
2 changes: 1 addition & 1 deletion src/core.c/Main.pm6
Expand Up @@ -53,7 +53,7 @@ my sub RUN-MAIN(&main, $mainline, :$in-as-argsfiles) {
sub thevalue(\a) {
((my \type := ::(a)) andthen Metamodel::EnumHOW.ACCEPTS(type.HOW))
?? type
!! a.val
!! val(a)
}

while @args {
Expand Down
2 changes: 1 addition & 1 deletion src/core.c/Rakudo/Internals.pm6
Expand Up @@ -165,7 +165,7 @@ my class Rakudo::Internals {
nqp::iterkey_s(nqp::shift($iter)),
nqp::assign(
nqp::p6scalarfromdesc(nqp::null),
nqp::box_s(nqp::iterval($iter),Str).val
val(nqp::box_s(nqp::iterval($iter),Str))
)
)
),
Expand Down

0 comments on commit b770971

Please sign in to comment.