Summary: BitArray this() with length
           Product: D
           Version: future
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos

--- Comment #0 from 2010-04-24 16:14:29 PDT ---
Using Phobos with dmd 2.043 this is wrong code, because it initialized the
length field but doesn't actually extend the array.
I think this is a natural syntax that people will want to use, so I suggest to
add this syntax, otherwise I think this will be a cause of bugs in programs.

So this is an enhancement request, but it's borderline with a bug report.

import std.bitmanip: BitArray;
void main() {
    auto b = BitArray(10);

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to