Bug 20639 – Some BitArray methods should be const/pure/nothrow/...

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-03-05T16:13:18Z
Last change time
2020-03-05T23:09:12Z
Keywords
pull
Assigned to
No Owner
Creator
moonlightsentinel

Comments

Comment #0 by moonlightsentinel — 2020-03-05T16:13:18Z
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 by dlang-bot — 2020-03-05T16:39:48Z
@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 by dlang-bot — 2020-03-05T23:09:12Z
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