[Issue 15364] New: BitArray.len should be private
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Nov 19 05:13:00 PST 2015
https://issues.dlang.org/show_bug.cgi?id=15364
Issue ID: 15364
Summary: BitArray.len should be private
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: bb.temp at gmx.com
---
import std.bitmanip;
void main(string[] args)
{
BitArray a;
a.len = 1;
a[0] = 1;
}
---
crashes because len shouldnt be only set using the length() setter.
--
More information about the Digitalmars-d-bugs
mailing list