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

Looping over unitialized shaped array no longer works (my @array[8]; .say for @array) #5946

Closed
p6rt opened this issue Dec 30, 2016 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Dec 30, 2016

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

Searchable as RT130451$

@p6rt
Copy link
Author

p6rt commented Dec 30, 2016

From @AlexDaniel

Code​:
my @​array[8]; .say for @​array

Result (2015.12,2016.10)​:
(Any)
(Any)
(Any)
(Any)
(Any)
(Any)
(Any)
(Any)

Result (HEAD)​:
X​::TypeCheck​::Binding exception produced no message
in block <unit> at /tmp/KMCq_pgtBj line 1

Nevermind that the error message is LTA, there should be no error at all in this case.

Bisectable points to rakudo/rakudo@dcfd4ed

@p6rt
Copy link
Author

p6rt commented Dec 30, 2016

From @lizmat

Fixed with 696b1f4, tests needed.

The problem could be reduced to​:

  (my @​[1]).iterator.pull-one

Somehow the binding to AT-POS-CONTAINER failed, and I wasn’t able to find what exactly was wrong with it. So don’t use AT-POS-CONTAINER at all. Also fix some stupidity in the push-all case, that could cause an array with nulls instead of containers to be filled to exist.

On 30 Dec 2016, at 03​:44, Aleks-Daniel Jakimenko-Aleksejev (via RT) <perl6-bugs-followup@​perl.org> wrote​:

# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev
# Please include the string​: [perl #​130451]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=130451 >

Code​:
my @​array[8]; .say for @​array

Result (2015.12,2016.10)​:
(Any)
(Any)
(Any)
(Any)
(Any)
(Any)
(Any)
(Any)

Result (HEAD)​:
X​::TypeCheck​::Binding exception produced no message
in block <unit> at /tmp/KMCq_pgtBj line 1

Nevermind that the error message is LTA, there should be no error at all in this case.

Bisectable points to rakudo/rakudo@dcfd4ed

@p6rt
Copy link
Author

p6rt commented Dec 30, 2016

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

@p6rt
Copy link
Author

p6rt commented Sep 1, 2017

From @skids

On Fri, 30 Dec 2016 03​:43​:02 -0800, elizabeth wrote​:

Fixed with 696b1f4, tests needed.

The problem could be reduced to​:

(my @​[1]).iterator.pull-one

Somehow the binding to AT-POS-CONTAINER failed, and I wasn’t able to
find what exactly was wrong with it. So don’t use AT-POS-CONTAINER at
all. Also fix some stupidity in the push-all case, that could cause
an array with nulls instead of containers to be filled to exist.

On 30 Dec 2016, at 03​:44, Aleks-Daniel Jakimenko-Aleksejev (via RT)
<perl6-bugs-followup@​perl.org> wrote​:

# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev
# Please include the string​: [perl #​130451]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=130451 >

Code​:
my @​array[8]; .say for @​array

Result (2015.12,2016.10)​:
(Any)
(Any)
(Any)
(Any)
(Any)
(Any)
(Any)
(Any)

Result (HEAD)​:
X​::TypeCheck​::Binding exception produced no message
in block <unit> at /tmp/KMCq_pgtBj line 1

Nevermind that the error message is LTA, there should be no error at
all in this case.

Bisectable points to
rakudo/rakudo@dcfd4ed

tests added in 130451, closing.

@p6rt
Copy link
Author

p6rt commented Sep 1, 2017

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

@p6rt p6rt closed this as completed Sep 1, 2017
@p6rt
Copy link
Author

p6rt commented Sep 1, 2017

From @skids

On Thu, 31 Aug 2017 18​:09​:31 -0700, bri@​abrij.org wrote​:

On Fri, 30 Dec 2016 03​:43​:02 -0800, elizabeth wrote​:

Fixed with 696b1f4, tests needed.

The problem could be reduced to​:

(my @​[1]).iterator.pull-one

Somehow the binding to AT-POS-CONTAINER failed, and I wasn’t able to
find what exactly was wrong with it. So don’t use AT-POS-CONTAINER
at
all. Also fix some stupidity in the push-all case, that could cause
an array with nulls instead of containers to be filled to exist.

On 30 Dec 2016, at 03​:44, Aleks-Daniel Jakimenko-Aleksejev (via RT)
<perl6-bugs-followup@​perl.org> wrote​:

# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev
# Please include the string​: [perl #​130451]
# in the subject line of all future correspondence about this
issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=130451 >

Code​:
my @​array[8]; .say for @​array

Result (2015.12,2016.10)​:
(Any)
(Any)
(Any)
(Any)
(Any)
(Any)
(Any)
(Any)

Result (HEAD)​:
X​::TypeCheck​::Binding exception produced no message
in block <unit> at /tmp/KMCq_pgtBj line 1

Nevermind that the error message is LTA, there should be no error
at
all in this case.

Bisectable points to
rakudo/rakudo@dcfd4ed

tests added in 130451, closing.

I mean, in 6b151a174a

@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