-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Substitutions return Bools, not the resulting Str in Rakudo #2325
Comments
From @masak<masak> rakudo: sub y2i( |
From @cokeSame(ish) behavior in rakudo 33f1cf. -- |
@coke - Status changed from 'new' to 'open' |
From @cokeOn Sat Oct 08 14:20:46 2011, coke wrote:
And 974d00. |
From @peschwaOn Tue Feb 25 17:23:38 2014, coke wrote:
A PR for this exists at [1]. |
From @peschwaOn Tue Jul 22 13:26:16 2014, peschwa@gmail.com wrote:
[1] and onwards has some discussion on this issue. The spec didn't seem completely clear on this, but has been updated in [2]. The thus specified behavior is implemented in [3]. There's two tests in S05-substitution/subst.t that will have to be update to match the new behavior. [1] http://irclog.perlgeek.de/perl6/2014-07-22#i_9064394 |
From @MouqThe current behavior is for s/// to return the match object of what was matched to be substituted for, per spec: $ perl6 -e'sub y2i($adjective is copy) { (in this case, .subst or .=subst is probably what is really wanted) As peschwa++ said, this is tested against in S05-substitution/subst.t Marking this issue as resolved :) On Tue Jul 22 19:24:02 2014, peschwa@gmail.com wrote:
|
@Mouq - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#82108 (status was 'resolved')
Searchable as RT82108$
The text was updated successfully, but these errors were encountered: