Transitive const sucks

Janice Caron caron800 at googlemail.com
Wed Sep 12 05:21:58 PDT 2007


Even something as simple as this needs logical const

class MyMathClass
{
    invariant int multiply(int x, int y) /* logically const */
    {
        debug logfile.writeLine("multiply.called");
        return x * y;
    }

    debug private Stream logfile;
}

You can't tell me that's not a real world need.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20070912/5a5861f3/attachment.html>


More information about the Digitalmars-d mailing list