"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/core.c/Str.pm6" between
rakudo-2020.08.2.tar.gz and rakudo-2020.09.tar.gz

About: Rakudo is a compiler for the Perl 6 programming language.

Str.pm6  (rakudo-2020.08.2):Str.pm6  (rakudo-2020.09)
skipping to change at line 3233 skipping to change at line 3233
} }
} }
# alas, need to use more complex route # alas, need to use more complex route
else { else {
LSM.new(self,$substitutions,$squash,$complement).result; LSM.new(self,$substitutions,$squash,$complement).result;
} }
} }
method parse-names(Str:D: --> Str:D) { method parse-names(Str:D: --> Str:D) {
# XXX TODO: issue deprecation warning in 6.d; remove in 6.e Rakudo::Deprecations.DEPRECATED('uniparse');
self.uniparse self.uniparse
} }
method uniparse(Str:D: --> Str:D) { method uniparse(Str:D: --> Str:D) {
my \names := nqp::split(',', self); my \names := nqp::split(',', self);
my int $elems = nqp::elems(names); my int $elems = nqp::elems(names);
my int $i = -1; my int $i = -1;
my str $res = ''; my str $res = '';
nqp::while( nqp::while(
nqp::islt_i( ($i = nqp::add_i($i,1)), $elems ), nqp::islt_i( ($i = nqp::add_i($i,1)), $elems ),
($res = nqp::concat($res, ($res = nqp::concat($res,
skipping to change at line 3860 skipping to change at line 3860
nqp::eqaddr(nqp::decont(a),nqp::decont(b)), nqp::eqaddr(nqp::decont(a),nqp::decont(b)),
nqp::eqaddr(a.WHAT,b.WHAT) && nqp::iseq_s(a,b) nqp::eqaddr(a.WHAT,b.WHAT) && nqp::iseq_s(a,b)
) )
) )
} }
proto sub samemark($, $, *%) {*} proto sub samemark($, $, *%) {*}
multi sub samemark($s, $pat --> Str:D) { $s.samemark($pat) } multi sub samemark($s, $pat --> Str:D) { $s.samemark($pat) }
sub parse-names(Str:D \names) { sub parse-names(Str:D \names) {
# XXX TODO: issue deprecation warning in 6.d; remove in 6.e Rakudo::Deprecations.DEPRECATED('uniparse');
names.uniparse names.uniparse
} }
proto sub uniparse($, *%) {*} proto sub uniparse($, *%) {*}
multi sub uniparse(Str:D \names --> Str:D) { names.uniparse } multi sub uniparse(Str:D \names --> Str:D) { names.uniparse }
# vim: expandtab shiftwidth=4 # vim: expandtab shiftwidth=4
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)