Skip to content
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

Elements from gather list are not Stringy after join #2024

Closed
p6rt opened this issue Aug 6, 2010 · 5 comments
Closed

Elements from gather list are not Stringy after join #2024

p6rt opened this issue Aug 6, 2010 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Aug 6, 2010

Migrated from rt.perl.org#77036 (status was 'resolved')

Searchable as RT77036$

@p6rt
Copy link
Author

p6rt commented Aug 6, 2010

From q@cono.org.ua

#git rev-parse HEAD
0e5edb5c5fb2c2a2011c5a41d0f5161bcd1f8885

11​:22 < cono> rakudo​: class E {has $.n is rw; has $.v is rw; method
Str{~self.v}}; my E $x .= new(​:v(1)); $x.n = E.new(​:v(2)); (gather {
my $i = $x; while $i.defined { take $i; $i = $i.n } }).join("|").say
11​:22 <+p6eval> rakudo 6d3258​: OUTPUT«Any()|Any()␤»
11​:22 < cono> is it a bug/
11​:22 < cono> rakudo​: class E {has $.n is rw; has $.v is rw; method
Str{self.v}}; my E $x .= new(​:v(1)); $x.n = E.new(​:v(2)); (gather {
my $i = $x; while $i.defined { take $i; $i = $i.n }
}).map({
$_}).join("|").say
11​:22 <+p6eval> rakudo 6d3258​: OUTPUT«1|2␤»
11​:23 < pmichaud> cono​: yes, it's likely a bug.
11​:23 < pmichaud> actually, I might be able to fix it easily now.
11​:23 < cono> should I submit?
11​:23 < pmichaud> sure... it's likely the take() bug.

--
Varyanick I. Alex
icq​: 102 575 440
skype​: cono..
q@​cono.org.ua

@p6rt
Copy link
Author

p6rt commented Oct 4, 2011

From @coke

On Fri Aug 06 01​:30​:28 2010, q@​cono.org.ua wrote​:

#git rev-parse HEAD
0e5edb5c5fb2c2a2011c5a41d0f5161bcd1f8885

11​:22 < cono> rakudo​: class E {has $.n is rw; has $.v is rw; method
Str{~self.v}}; my E $x .= new(​:v(1)); $x.n = E.new(​:v(2)); (gather {
my $i = $x; while $i.defined { take $i; $i = $i.n } }).join("|").say
11​:22 <+p6eval> rakudo 6d3258​: OUTPUT«Any()|Any()␤»

08​:58 < [Coke]> rakudo​: class E {has $.n is rw; has $.v is rw; method
  Str{~self.v}}; my E $x .= new(​:v(1)); $x.n = E.new(​:v(2));
  (gather { my $i = $x; while $i.defined { take $i; $i = $i.n }
  }).join("|").say
08​:58 <+p6eval> rakudo 7408d6​: OUTPUT«1|2␤»

11​:22 < cono> is it a bug/
11​:22 < cono> rakudo​: class E {has $.n is rw; has $.v is rw; method
Str{self.v}}; my E $x .= new(​:v(1)); $x.n = E.new(​:v(2)); (gather {
my $i = $x; while $i.defined { take $i; $i = $i.n }
}).map({
$_}).join("|").say
11​:22 <+p6eval> rakudo 6d3258​: OUTPUT«1|2␤»
11​:23 < pmichaud> cono​: yes, it's likely a bug.
11​:23 < pmichaud> actually, I might be able to fix it easily now.
11​:23 < cono> should I submit?
11​:23 < pmichaud> sure... it's likely the take() bug.

Fixed, closable with tests.
--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Oct 4, 2011

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Oct 8, 2011

From @moritz

now tested in S04-statements/gather.t

@p6rt
Copy link
Author

p6rt commented Oct 8, 2011

@moritz - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Oct 8, 2011
@p6rt p6rt added the testneeded label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant