const/immutable violation?

Jason House jason.james.house at gmail.com
Sun May 1 13:29:38 PDT 2011


Ashish Myles Wrote:

>      foo2 = foo; // allowed immutable RHS ???

Allowing this is a bug. File it in bugzilla.

Unfortunately, lazy objects "mess up" the expected const correctness of Object. Even if they are logically const, lazy objects can't always be passed as const.



More information about the Digitalmars-d-learn mailing list