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

Parcels don't stringify properly in Rakudo #1547

Closed
p6rt opened this issue Feb 26, 2010 · 5 comments
Closed

Parcels don't stringify properly in Rakudo #1547

p6rt opened this issue Feb 26, 2010 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Feb 26, 2010

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

Searchable as RT73128$

@p6rt
Copy link
Author

p6rt commented Feb 26, 2010

From @masak

<colomon> rakudo​: sub xyz(Mu $x) { say ~$x; }; xyz(<a b c>);
<p6eval> rakudo 4fc3af​: OUTPUT«3␤»
<pmichaud> ah-ha
<masak> wut?
<pmichaud> parcels aren't stringifying properly.
<colomon> rakudo​: sub xyz(Mu $x) { say $x.WHAT; }; xyz(<a b c>);
<p6eval> rakudo 4fc3af​: OUTPUT«Parcel()␤»
<pmichaud> rakudo​: sub xyz(Mu $x) { say ~$x }; xyz(('a', 'b', 'c'));
<p6eval> rakudo 4fc3af​: OUTPUT«3␤»
* masak submits rakudobug
<pmichaud> colomon++
<pmichaud> rakudo​: say PARROT(<a b c>);
<p6eval> rakudo 4fc3af​: OUTPUT«Parcel␤»

@p6rt
Copy link
Author

p6rt commented Mar 5, 2010

From @masak

<colomon> btw, masak​:
<colomon> rakudo​: say (1, 2, 3)
<p6eval> rakudo d4be43​: OUTPUT«3␤»
<colomon> already reported?
<masak> o.O
<masak> no.
* masak submits rakudobug
<masak> rakudo​: say (1, 2, 3)
<colomon> I tried fixing it, and it was a mini-disaster
<p6eval> rakudo d4be43​: OUTPUT«123␤»
<colomon> rakudo​: say (1, 2, 3).Str
<p6eval> rakudo d4be43​: OUTPUT«1 2 3␤»
<masak> strange that only prefix​:<
> is broken.
<colomon> agreed.
<colomon> So strange, in fact, that I initially didn't even bother to
test .Str, assuming that writing Parcel.Str would fix the problem.
<masak> rakudo​: say ~(4,5,6)
<p6eval> rakudo d4be43​: OUTPUT«3␤»
<masak> ok, so it's length, not last element.
<masak> probably stringifies the numification or something.

@p6rt
Copy link
Author

p6rt commented Mar 8, 2010

From @moritz

Fixed in b1fd5d8e5dc8fdc67fffc003266c78ed8c5515c2 and tested in parcel.t

@p6rt
Copy link
Author

p6rt commented Mar 8, 2010

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

@p6rt
Copy link
Author

p6rt commented Mar 8, 2010

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

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

No branches or pull requests

1 participant