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

xx puts the same object in all spots, even value types #448

Closed
p6rt opened this issue Dec 3, 2008 · 6 comments
Closed

xx puts the same object in all spots, even value types #448

p6rt opened this issue Dec 3, 2008 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Dec 3, 2008

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

Searchable as RT61026$

@p6rt
Copy link
Author

p6rt commented Dec 3, 2008

From @masak

<masak> perl6​: my @​a = 0 xx 4; @​a[0] = 42; say @​a.perl
<p6eval> rakudo 33460​: OUTPUT[[42, 42, 42, 42]␤]
<p6eval> ..pugs​: OUTPUT[\(42, 0, 0, 0)␤]
<p6eval> ..elf 24144​: OUTPUT[[42,0,0,0]␤]
<moritz_> jnthn​: right
<jnthn> masak​: Oooh, that's a good one!
<masak> who's right, elf/pugs or rakudo?
<jnthn> I vote elf.
* masak files rakudobug
<jnthn> Oh, Pugs isn't so wrong either.

@p6rt
Copy link
Author

p6rt commented Dec 3, 2008

From @moritz

On Wed Dec 03 12​:59​:35 2008, masak wrote​:

<masak> perl6​: my @​a = 0 xx 4; @​a[0] = 42; say @​a.perl
<p6eval> rakudo 33460​: OUTPUT[[42, 42, 42, 42]␤]
<p6eval> ..pugs​: OUTPUT[\(42, 0, 0, 0)␤]
<p6eval> ..elf 24144​: OUTPUT[[42,0,0,0]␤]
<moritz_> jnthn​: right
<jnthn> masak​: Oooh, that's a good one!
<masak> who's right, elf/pugs or rakudo?
<jnthn> I vote elf.
* masak files rakudobug
<jnthn> Oh, Pugs isn't so wrong either.

I've added some basic tests to t/spec/S03-operators/repeat.t in (pugs)
r24146 and r24147.

Cheers,
Moritz

@p6rt
Copy link
Author

p6rt commented Dec 3, 2008

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

@p6rt
Copy link
Author

p6rt commented Dec 5, 2008

From @pmichaud

On Wed, Dec 03, 2008 at 12​:59​:36PM -0800, Carl Mäsak wrote​:

<masak> perl6​: my @​a = 0 xx 4; @​a[0] = 42; say @​a.perl
<p6eval> rakudo 33460​: OUTPUT[[42, 42, 42, 42]␤]
<p6eval> ..pugs​: OUTPUT[\(42, 0, 0, 0)␤]
<p6eval> ..elf 24144​: OUTPUT[[42,0,0,0]␤]
<moritz_> jnthn​: right
<jnthn> masak​: Oooh, that's a good one!
<masak> who's right, elf/pugs or rakudo?
<jnthn> I vote elf.
* masak files rakudobug
<jnthn> Oh, Pugs isn't so wrong either.

For the record, I think this is more an example of improper
list to array conversion than a problem of infix​:<xx> itself.
I'm working on array conversion now.

Pm

@p6rt
Copy link
Author

p6rt commented Dec 9, 2008

From @moritz

On Fri Dec 05 07​:43​:57 2008, pmichaud wrote​:

On Wed, Dec 03, 2008 at 12​:59​:36PM -0800, Carl Mäsak wrote​:

<masak> perl6​: my @​a = 0 xx 4; @​a[0] = 42; say @​a.perl
<p6eval> rakudo 33460​: OUTPUT[[42, 42, 42, 42]␤]
<p6eval> ..pugs​: OUTPUT[\(42, 0, 0, 0)␤]
<p6eval> ..elf 24144​: OUTPUT[[42,0,0,0]␤]
<moritz_> jnthn​: right
<jnthn> masak​: Oooh, that's a good one!
<masak> who's right, elf/pugs or rakudo?
<jnthn> I vote elf.
* masak files rakudobug
<jnthn> Oh, Pugs isn't so wrong either.

For the record, I think this is more an example of improper
list to array conversion than a problem of infix​:<xx> itself.
I'm working on array conversion now.

This test is now passing (after merge of the "assign" branch).

Cheers,
Moritz

@p6rt
Copy link
Author

p6rt commented Dec 9, 2008

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

@p6rt p6rt closed this as completed Dec 9, 2008
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant