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
Channel.list does not honor .Slip #5720
Comments
From @gfldexmy $c = Channel.new; |
From @lizmat
$ 6 'dd (1,(2,3,4),5).join(":")' would you expect to give that 1:2:3:4:5 as well? I think the issue is clouded here by the stringification of a List: $ 6 'say (1,2,3).Str' $ 6 'say ((1,2,3),).Str' $ 6 'dd (1,2,3)' $ 6 'dd ((1,2,3),)' So I’m not sure there *is* a bug here. Liz |
The RT System itself - Status changed from 'new' to 'open' |
From @zoffixznetIf you dump the data with `.perl`, you can see the middle item is a list with the slip in it: <ZoffixW> m: my $c = Channel.new; $c.send((1,2,3).Slip); $c.close; say (1,$c.list,2).perl And I think the reported issue is that that doesn't correspond to the behaviour you'd get with a, say, hand-rolled sub doing the same thing, where the slip flattens automagically into an Array, but doesn't do so with the Channel's Queue object: <ZoffixW> m: sub foo ($x) { my @foo; @foo.push: $x; @foo.Seq.list }; dd (1, foo((2,3,4).Slip), 2).perl On Mon Oct 03 06:31:14 2016, elizabeth wrote:
|
Migrated from rt.perl.org#129797 (status was 'open')
Searchable as RT129797$
The text was updated successfully, but these errors were encountered: