Bug 1846 – bitmanip.BitArray.opIndex need const read-only version
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2008-02-17T02:19:00Z
Last change time
2015-06-09T05:15:13Z
Assigned to
bugzilla
Creator
someanon
Comments
Comment #0 by someanon — 2008-02-17T02:19:06Z
function std.bitmanip.BitArray.opIndex (uint) does not match parameter types (int)
Error: opIndex can only be called on a mutable object, not const(BitArray)
Comment #1 by andrei — 2008-02-17T03:55:32Z
In fact it only needs the const version. I made the change and a unittest, and will commit to the next release. There's going to be many const annotations to do throughout the library...
Andrei
Comment #2 by caron800 — 2008-02-17T04:25:08Z
> There's going to be many const annotations to
> do throughout the library...
Including
const int opCmp(in Object o)
const bool object.opEquals(in Object o)
const hash_t object.toHash()
const string object.toString()
in Object?
Please...?
Comment #3 by caron800 — 2008-02-18T01:19:35Z
On 18/02/2008, Sergey Gromov <[email protected]> wrote:
> Janice Caron <[email protected]> wrote:
> > > There's going to be many const annotations to
> > > do throughout the library...
> >
> > in Object?
> >
> > Please...?
>
> Andrei doesn't seem to monitor this group. Use Bugzilla's Comment
> facilities if you want his attention.
I already put that one in bugzilla. I was just quietly reminding folk of it. :-)
Comment #4 by braddr — 2008-03-07T01:29:40Z
Marking resolved. Changes from the original report was released in 2.011. The second issues is duplicated over in issue 1824