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
.trans method modifies its argument #315
Comments
From @pmichaudThe .trans method appears to be modifying its argument: $ cat x say $x.perl; $ ./parrot perl6.pbc x Pm |
From @cjfieldsOn Mon Sep 22 09:11:37 2008, pmichaud wrote:
|
From @cjfieldstrans.patchIndex: languages/perl6/src/builtins/any-str.pir
===================================================================
--- languages/perl6/src/builtins/any-str.pir (revision 31336)
+++ languages/perl6/src/builtins/any-str.pir (working copy)
@@ -300,11 +300,12 @@
.sub '!transtable' :multi(_)
.param pmc r
- .local pmc retval
+ .local pmc retval, tmps
retval = new 'ResizableStringArray'
+ tmps = clone r
range_loop:
- unless r, done
- $S0 = r.'shift'()
+ unless tmps, done
+ $S0 = tmps.'shift'()
push retval, $S0
goto range_loop
done:
|
The RT System itself - Status changed from 'new' to 'open' |
From @pmichaudApplied in r31339, thanks! Pm |
@pmichaud - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#59204 (status was 'resolved')
Searchable as RT59204$
The text was updated successfully, but these errors were encountered: