You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<masak> rakudo: $_ = "open"; my @verbs = "open", "close"; say $_ ~~ /^ @verbs/
<p6eval> rakudo 922500: OUTPUT«»
<masak> rakudo: $_ = "open"; my @verbs = "open"; say $_ ~~ /^ @verbs/
<p6eval> rakudo 922500: OUTPUT«open»
<masak> ah, seems array interpolation isn't correctly implemented
after all. (the array stringifies instead of acting like any(@verbs)).
that's too bad. [11:38]
<moritz> rakudo: $_ = "open"; my @verbs = <open close>; say $_ ~~ /^ @verbs/
<p6eval> rakudo 922500: OUTPUT«»
<masak> maybe an appropriate change to src/Perl6/Actions.pm:3109 would
fix things.
<masak> huh. that's odd.
<masak> looking at the commit for that area of code, the !MAKE_REGEX
routine in src/glue/regex.pir seems to be *specifically* made for
handling arrays interpolated into regexes.
<masak> but I don't see it applying any infix:<|> semantics.
<masak> S05:1139: "An interpolated array [...] is matched as if it
were an alternation of its elements."
* masak submits rakudobug
Migrated from rt.perl.org#95504 (status was 'resolved')
Searchable as RT95504$
The text was updated successfully, but these errors were encountered: