Thread overview
[Issue 1846] New: bitmanip.BitArray.opIndex need const read-only version
Feb 17, 2008
d-bugmail
Feb 17, 2008
d-bugmail
Feb 17, 2008
Janice Caron
Feb 18, 2008
Sergey Gromov
Feb 18, 2008
Janice Caron
Mar 07, 2008
d-bugmail
February 17, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1846

           Summary: bitmanip.BitArray.opIndex  need const read-only version
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: someanon@yahoo.com


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)


-- 

February 17, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1846


andrei@metalanguage.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED




------- Comment #1 from andrei@metalanguage.com  2008-02-17 03:55 -------
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


-- 

February 17, 2008
> 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...?
February 18, 2008
Janice Caron <caron800@googlemail.com> 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.

-- 
SnakE
February 18, 2008
On 18/02/2008, Sergey Gromov <snake.scaly@gmail.com> wrote:
> Janice Caron <caron800@googlemail.com> 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. :-)
March 07, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1846


braddr@puremagic.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED




------- Comment #4 from braddr@puremagic.com  2008-03-07 01:29 -------
Marking resolved.  Changes from the original report was released in 2.011.  The second issues is duplicated over in issue 1824


--