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
list assignment to natively typed variables blows up #2541
Comments
From @moritz12:09 < moritz> nom: my int $x; my int $y; ($x, $y) = (5, 6); say $x Might be related to the same limitation that prevents us from having |
From @cokeOn Fri Oct 28 03:10:51 2011, moritz wrote:
Behavior has changed: 18:08 <[Coke]> r: my int $x; my int $y; ($x, $y) = (5, 6); say $x -- |
The RT System itself - Status changed from 'new' to 'open' |
From @lizmatOn 27 Oct 2013, at 23:10, Will Coleda via RT <perl6-bugs-followup@perl.org> wrote:
Actually, the simpler: my int $x; also fails. Added tests for that. Liz |
From @usev6This works now: $ perl6 -e 'my int $x; my int $y; ($x, $y) = (5, 6); say $x' One of the added test in S02-types/native.t was unfudge with commit Raku/roast@a86da6189b It has to be resolved whether the following should return (Int) or (int) (cmp. http://irclog.perlgeek.de/perl6/2015-03-01#i_10201255) $ perl6 -e 'my int $x; ($x) = (5); say $x.WHAT' |
1 similar comment
From @usev6This works now: $ perl6 -e 'my int $x; my int $y; ($x, $y) = (5, 6); say $x' One of the added test in S02-types/native.t was unfudge with commit Raku/roast@a86da6189b It has to be resolved whether the following should return (Int) or (int) (cmp. http://irclog.perlgeek.de/perl6/2015-03-01#i_10201255) $ perl6 -e 'my int $x; ($x) = (5); say $x.WHAT' |
From @jnthnOn Sun Mar 01 12:47:10 2015, bartolin@gmx.de wrote:
That's enough to resolve the ticket.
That's unrelated to the ticket, and moreover a design issue. I'm inclined to think the current behavior is correct anyway; .WHAT operates at object level, and so boxing is natural. Resolving, since the issue the ticket is about is fixed and tested. Thanks, Jonathan |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#102416 (status was 'resolved')
Searchable as RT102416$
The text was updated successfully, but these errors were encountered: