D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 20639 - Some BitArray methods should be const/pure/nothrow/...
Summary: Some BitArray methods should be const/pure/nothrow/...
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P1 minor
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2020-03-05 16:13 UTC by moonlightsentinel
Modified: 2020-03-05 23:09 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description moonlightsentinel 2020-03-05 16:13:18 UTC
The following code gives various errors regarding pure/nothrow/... because these methods are missing appropriate annotations:

-----------------
import std.bitmanip : BitArray;

void main() @nogc pure nothrow
{
    BitArray b;
    b[] = true;
    b[0..1] = true;
    b.flip();
    b.count();
}
------------------
Comment 1 Dlang Bot 2020-03-05 16:39:48 UTC
@MoonlightSentinel created dlang/phobos pull request #7415 "Fix Issue 20639 - Some BitArray methods should be const/pure/nothrow/..." fixing this issue:

- Fix Issue 20639 - Some BitArray methods should be const/pure/nothrow/...

https://github.com/dlang/phobos/pull/7415
Comment 2 Dlang Bot 2020-03-05 23:09:12 UTC
dlang/phobos pull request #7415 "Fix Issue 20639 - Some BitArray methods should be const/pure/nothrow/..." was merged into stable:

- 84ee525ff5282ccd538792439569da6cb4d91e45 by MoonlightSentinel:
  Fix Issue 20639 - Some BitArray methods should be const/pure/nothrow/...

https://github.com/dlang/phobos/pull/7415