const(Object)ref is here!

Jonathan M Davis jmdavisProg at gmx.com
Mon Dec 6 00:31:41 PST 2010


On Sunday 05 December 2010 23:59:58 so wrote:
> On Mon, 06 Dec 2010 02:51:32 +0200, Michel Fortin
> 
> <michel.fortin at michelf.com> wrote:
> > <http://d.puremagic.com/issues/show_bug.cgi?id=5325>
> 
> Great!
> 
> > See the strange predicate for the const(Object) version? That's because
> > opCmp() in Object doesn't work with const.
> 
> For the same reason opEquals acting funny with const?

Neither are marked as const on Object itself, and that needs to happen for 
Object to be const correct. toHash() and toString() (or writeFrom() or whatever 
it's going to become) have the same problem. None of them are const in Object.

- Jonathan M Davis


More information about the Digitalmars-d mailing list