const/invariant bug?

Walter Bright newshound1 at digitalmars.com
Thu Apr 3 00:00:10 PDT 2008


Craig Black wrote:
>  void setX(int nx) const { x = nx; }

That should work, but at the moment:

const void setX(int nx) { x = nx; }

does work.



More information about the Digitalmars-d mailing list