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
pair construction peculiarity in: my $x = 42; $x = :$x; #4649
Comments
From @dwarringFrom RT: [10:17] <dwarring> r: my $x = 42; $x = :$x; say $x.perl |
From @dwarringOn Thu Oct 15 14:29:37 2015, david.warring wrote:
A fudged test has been added to S02-types/pair.t |
From @smlsNot a bug. Unlike a Hash, a Pair doesn't force a fresh item containers on its value. `List`s (but not `Array`s) work the same way: ➜ my $x = 42; $x = (1, 2, $x); say $x.perl; A side-effect of this is that you can define recursive lists and pairs, which is what you inadvertently did in the given example. ➜ $x = :x($x<>); TL;DR: |
The RT System itself - Status changed from 'new' to 'open' |
From @dwarringSam, So that $x rebinds to thye outer pair container. I will withdraw or modify the test case as above. On Sat May 07 14:07:55 2016, smls75@gmail.com wrote:
|
@smls - Status changed from 'open' to 'rejected' |
From @dwarringNote. I've kept the test, but changed the assignment to a bind.
|
Migrated from rt.perl.org#126369 (status was 'rejected')
Searchable as RT126369$
The text was updated successfully, but these errors were encountered: