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
Mis-matched types and Binding Containers - 2010.12 bug? #2321
Comments
From james@rcpt.toHello, I tried out the 2010.12 build of Raduko *, with a variation of the Perl #!/usr/bin/perl6 Gives the output (truncated): in 'at_pos' at line 5:CORE.setting Not sure if this is already logged in RT. Playing further I see the saem #!/usr/bin/perl6 And also when the $x has no type: #!/usr/bin/perl6 The only time this works is when @a is not typed at all; $x can be #!/usr/bin/perl6 So, perhaps when @a is typed to only be INTs, it cannot hold Containers, HTH. Many thanks, James PS: Is there any use to getting Unicode character "one half" (½), "one |
From @FROGGSlooks good today: <FROGGS> r: my Int @a = 1, 2, 3; my Str $x = "foo"; @a[0] := $x; say @a[0]; <FROGGS> r: my Int @a = 1, 2, 3; my Int $x = 5; @a[0] := $x; say @a[0]; <FROGGS> r: my Int @a = 1, 2, 3; my $x = 5; @a[0] := $x; say @a[0]; <FROGGS> r: my @a = 1, 2, 3; my Int $x = 5; @a[0] := $x; say @a[0]; |
The RT System itself - Status changed from 'new' to 'open' |
From @usev6On Tue Nov 20 12:16:04 2012, FROGGS.de wrote:
The output is still the same as in 2012. I guess, this ticket hasn't been closed because the first command should actually die with X::TypeCheck. The other commands are fine, though. I added a test for those to S09-typed-arrays/arrays.t with commit Raku/roast@8dd0ebb164 Since we have another ticket (https://rt-archive.perl.org/perl6/Ticket/Display.html?id=123769) for the "should crash" case, I'm linking both tickets and closing this one as 'resolved'. On Wed Jan 05 07:01:52 2011, james@rcpt.to wrote:
BTW, there was an answer to this question about Unicode characters like ½ on #perl6 just today: < TimToady> m: constant term:<½> = 1/2; say ½ |
@usev6 - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#81682 (status was 'resolved')
Searchable as RT81682$
The text was updated successfully, but these errors were encountered: