www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1846] New: bitmanip.BitArray.opIndex need const read-only version

reply d-bugmail puremagic.com writes:
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)


-- 
Feb 17 2008
next sibling parent reply d-bugmail puremagic.com writes:
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


-- 
Feb 17 2008
parent Sergey Gromov <snake.scaly gmail.com> writes:
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
Feb 17 2008
prev sibling next sibling parent "Janice Caron" <caron800 googlemail.com> writes:
 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...?
Feb 17 2008
prev sibling next sibling parent "Janice Caron" <caron800 googlemail.com> writes:
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. :-)
Feb 17 2008
prev sibling parent d-bugmail puremagic.com writes:
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


-- 
Mar 06 2008