The Status of Const

Kagamin spam at here.lot
Thu Aug 12 23:17:33 PDT 2010


Adam Ruppe Wrote:

> On the subject of rebindable, what about:
> 
> const Object o; // not rebindable, the whole thing is set once and const
> const(Object) o; // the Object is const, but the reference is not.

Oops, this violates the const system because it unclear, whether const(Object)* is a pointer to rebindable or non-rebindable reference.


More information about the Digitalmars-d mailing list