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
Wrong array length when Mu elements and delete interact in Rakudo #3044
Comments
From @masak<pmurias> I have found a rakudo bug |
From @masak<tadzik> don't know about nqp, but on JVM we keep a constant value in |
@masak - Status changed from 'new' to 'open' |
From @usev6It looks like deleting the last element of an array no longer deletes the undefined elements before it:
The same with class Foo:
Is that the expected behaviour? The IRC log above expressed same doubts about that. |
1 similar comment
From @usev6It looks like deleting the last element of an array no longer deletes the undefined elements before it:
The same with class Foo:
Is that the expected behaviour? The IRC log above expressed same doubts about that. |
From @lizmatOn 08 Oct 2014, at 12:30, Christian Bartolomaeus via RT <bugs-comment@bugs6.perl.org> wrote:
Setting an array element to Any, is *not* the same as deleting an entry. The proper way to do this is with the :delete adverb: $ 6 'my $a; $a[5]=1; say $a.elems; $a[5]:delete; say $a.elems' Liz |
From @usev6Well, this bug is gone, then. I added a test to S32-array/delete.t with the following commit: Raku/roast@f386c96536 I had (and have) some difficulties to find the references in the spec for the correct behaviour -- especially with regard to the following quotes from an earlier IRC discussion. But that's not directly related to this bug and I'll bring it up on IRC.
|
1 similar comment
From @usev6Well, this bug is gone, then. I added a test to S32-array/delete.t with the following commit: Raku/roast@f386c96536 I had (and have) some difficulties to find the references in the spec for the correct behaviour -- especially with regard to the following quotes from an earlier IRC discussion. But that's not directly related to this bug and I'll bring it up on IRC.
|
@usev6 - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#116695 (status was 'resolved')
Searchable as RT116695$
The text was updated successfully, but these errors were encountered: