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

Cannot extract partially dimensioned view of array from fixed-size array #6075

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

Cannot extract partially dimensioned view of array from fixed-size array #6075

p6rt opened this issue Feb 26, 2017 · 5 comments
Labels
Bug LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented Feb 26, 2017

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

Searchable as RT130863$

@p6rt
Copy link
Author

p6rt commented Feb 26, 2017

From @titsuki

See the following example​:

$ perl6 -e 'my @​a; @​a = [[1, 2], [3, 4]]; @​a[0;*].say;'
(1 2)

$ perl6 -e 'my @​a[2;2]; @​a = [[1, 2], [3, 4]]; @​a[0;*].say;'
Partially dimensioned views of arrays not yet implemented. Sorry. 
  in block <unit> at -e line 1

I'm not sure this is a bug or really not yet implemented as the 2nd example says.
However, "partially dimensioned views of arrays" seems implemented as the 1st example shows.

$ perl6 --version
This is Rakudo version 2017.02-58-gd41b68e built on MoarVM version 2017.02-7-g3d85900
implementing Perl 6.c.

@p6rt
Copy link
Author

p6rt commented Feb 26, 2017

From @lizmat

On 26 Feb 2017, at 07​:06, Itsuki Toyota (via RT) <perl6-bugs-followup@​perl.org> wrote​:

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

See the following example​:

$ perl6 -e 'my @​a; @​a = [[1, 2], [3, 4]]; @​a[0;*].say;'
(1 2)

$ perl6 -e 'my @​a[2;2]; @​a = [[1, 2], [3, 4]]; @​a[0;*].say;'
Partially dimensioned views of arrays not yet implemented. Sorry.
in block <unit> at -e line 1

I'm not sure this is a bug or really not yet implemented as the 2nd example says.
However, "partially dimensioned views of arrays" seems implemented as the 1st example shows.

$ perl6 --version
This is Rakudo version 2017.02-58-gd41b68e built on MoarVM version 2017.02-7-g3d85900
implementing Perl 6.c.

I guess the error at the moment is in the error message, which should read​:

"Partially dimensioned views of shaped arrays not yet implemented. Sorry.”

Liz

@p6rt
Copy link
Author

p6rt commented Feb 26, 2017

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

@p6rt
Copy link
Author

p6rt commented Mar 4, 2017

From @zoffixznet

On Sat, 25 Feb 2017 22​:06​:29 -0800, cookbook_000@​yahoo.co.jp wrote​:

See the following example​:

$ perl6 -e 'my @​a; @​a = [[1, 2], [3, 4]]; @​a[0;*].say;'
(1 2)

$ perl6 -e 'my @​a[2;2]; @​a = [[1, 2], [3, 4]]; @​a[0;*].say;'
Partially dimensioned views of arrays not yet implemented. Sorry.
  in block <unit> at -e line 1

I'm not sure this is a bug or really not yet implemented as the 2nd
example says.
However, "partially dimensioned views of arrays" seems implemented as
the 1st example shows.

$ perl6 --version
This is Rakudo version 2017.02-58-gd41b68e built on MoarVM version
2017.02-7-g3d85900
implementing Perl 6.c.

Thank you for the report. This is now fixed.

Rakudo fix​: rakudo/rakudo@3bf734f644
Tests​: (none, since this is just a clarification of NYI error message)

@p6rt p6rt closed this as completed Mar 4, 2017
@p6rt
Copy link
Author

p6rt commented Mar 4, 2017

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

@p6rt p6rt added Bug LTA Less Than Awesome; typically an error message that could be better labels Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug LTA Less Than Awesome; typically an error message that could be better
Projects
None yet
Development

No branches or pull requests

1 participant