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
.gist on typed array shows (Any) instead of real type objects #3563
Comments
From @masak<smls> m: my Int @a; @a[4]++; say @a[0]; say @a |
From @usev6On Thu Oct 23 04:51:47 2014, masak wrote:
Actually, the typed array seems to contain (Int) type objects -- as the output of @a[0] also shows: $ perl6 -e 'my Int @a; @a[4]++; say @a[0]; say @a.perl' The problem seems to be in .gist (which is called with 'say @a' in the first evaluation). More specifically, .gist calls .map on @a and the type info is not present within .map. (Also reported in https://rt-archive.perl.org/perl6/Ticket/Display.html?id=120071). $ perl6 -e 'my Int @a; @a[4]++; @a.map:{say .WHAT.perl};' I'm going to change the subject of this ticket and add a reference to RT #120071. |
1 similar comment
From @usev6On Thu Oct 23 04:51:47 2014, masak wrote:
Actually, the typed array seems to contain (Int) type objects -- as the output of @a[0] also shows: $ perl6 -e 'my Int @a; @a[4]++; say @a[0]; say @a.perl' The problem seems to be in .gist (which is called with 'say @a' in the first evaluation). More specifically, .gist calls .map on @a and the type info is not present within .map. (Also reported in https://rt-archive.perl.org/perl6/Ticket/Display.html?id=120071). $ perl6 -e 'my Int @a; @a[4]++; @a.map:{say .WHAT.perl};' I'm going to change the subject of this ticket and add a reference to RT #120071. |
@usev6 - Status changed from 'new' to 'open' |
From @peschwaOn Sun Sep 13 12:52:47 2015, bartolin@gmx.de wrote:
As of commit 5b2b2475, this evaluates as follows: < psch> m: my Int @a; @a[4]++; @a.map:{say .WHAT.perl}; |
From @usev6Also masak's example works now as expected: $ perl6 -e 'my Int @a; @a[4]++; say @a[0]; say @a' I added a test (without say, but using .gist) to S09-typed-arrays/arrays.t with commit Raku/roast@4ec7087158. I'm closing this ticket as 'resolved'. |
1 similar comment
From @usev6Also masak's example works now as expected: $ perl6 -e 'my Int @a; @a[4]++; say @a[0]; say @a' I added a test (without say, but using .gist) to S09-typed-arrays/arrays.t with commit Raku/roast@4ec7087158. I'm closing this ticket as 'resolved'. |
@usev6 - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#123037 (status was 'resolved')
Searchable as RT123037$
The text was updated successfully, but these errors were encountered: