Skip Menu |
Report information
Id: 79166
Status: resolved
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: masak <cmasak [at] gmail.com>
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [BUG] Can't assign to a variable that already contains a Whatever in Rakudo
Date: Sat, 13 Nov 2010 19:09:05 +0100
To: rakudobug [...] perl.org
From: Carl Mäsak <cmasak [...] gmail.com>
Download (untitled) / with headers
text/plain 403b
<masak> rakudo: my $a = *; $a = "foo"; say $a <p6eval> rakudo c548b8: OUTPUT«Whatever()<0x7d4de48>␤» * masak submits rakudobug jnthn points out that this is how C<($x, *, $y) = 1, 2, 3> works, and that he's not even sure the above is wrong. I'm convinced that it's wrong, and if the spec says it isn't, the spec is wrong too. It must be possible to assign to variables containing a Whatever value.
Subject: [perl #79166] tests available
Date: Thu, 23 Dec 2010 14:05:01 -0600
To: perl6-bugs-followup [...] perl.org
From: kyleha [...] gmail.com
Download (untitled) / with headers
text/plain 1.1k
This is an automatically generated mail to inform you that tests are now available in S02-builtin_data_types/whatever.t commit 84eeb91eda9ada8213f062282f85e04779764a5b Author: Kyle Hasselbacher <kyleha@gmail.com> Date: Thu Dec 23 14:00:16 2010 -0600 [whatever.t] Test for RT 79166 diff --git a/S02-builtin_data_types/whatever.t b/S02-builtin_data_types/whatever.t index 4e1a45e..5ebdc31 100644 --- a/S02-builtin_data_types/whatever.t +++ b/S02-builtin_data_types/whatever.t @@ -1,7 +1,7 @@ use v6; use Test; -plan 71; +plan 73; # L<S02/Built-In Data Types/"The * character as a standalone term captures the notion of"> # L<S02/Native types/"If any native type is explicitly initialized to"> @@ -223,6 +223,15 @@ eval_lives_ok '{*.{}}()', '{*.{}}() lives'; dies_ok { &infix:<R+>(*, 42) }, '&infix:<+>(*, 42) doesn\'t make a closure'; } +# RT 79166 +{ + my $rt79166 = *; + isa_ok $rt79166, Whatever, 'assignment of whatever still works'; + $rt79166 = 'RT 79166'; + #?rakudo todo 'RT 79166' + is $rt79166, 'RT 79166', 'assignment to variable with whatever in it'; +} + done_testing; # vim: ft=perl6
Fixed in nom, test passes now.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org