You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected no errors, but in the first case it complains about assignment to immutable value even though none exist in the code.
zoffix@VirtualBox:~$ perl6 -e 'm: sub foo () {$ = 42}; for ^2000000 { $ = foo }; say now - INIT now'
Cannot assign to an immutable value
in block <unit> at -e line 1
zoffix@VirtualBox:~$ MVM_SPESH_DISABLE=1 perl6 -e 'm: sub foo () {$ = 42}; for ^2000000 { $ = foo }; say now - INIT now'
2.6287172
zoffix@VirtualBox:~$ perl6 --optimize=off -e 'm: sub foo () {$ = 42}; for ^2000000 { $ = foo }; say now - INIT now'
1.3881109
zoffix@VirtualBox:~$ perl6 -e 'm: sub foo () {$ = 42}; for ^2 { $ = foo }; say now - INIT now'
0.00196070
zoffix@VirtualBox:~$
On Fri, 24 Feb 2017 15:02:23 -0800, cpan@zoffix.com wrote:
Expected no errors, but in the first case it complains about
assignment to immutable value even though none exist in the code.
zoffix@VirtualBox:~$ perl6 -e 'm: sub foo () {$ = 42}; for ^2000000 {
$ = foo }; say now - INIT now'
Cannot assign to an immutable value
in block <unit> at -e line 1
Was fixed in spesh work last month or so; test now added to S04-declarations/state.t so we don't regress.
Migrated from rt.perl.org#130855 (status was 'resolved')
Searchable as RT130855$
The text was updated successfully, but these errors were encountered: