unpaintable (the solution to logical const)

Janice Caron caron800 at googlemail.com
Sat Apr 5 15:03:13 PDT 2008


On 05/04/2008, Jason House <jason.james.house at gmail.com> wrote:
>  Other interesting alternative I thought of is "quarantine".  Walter might
>  like that it'd claim the title of the longest keyword in D :)

On that basis, let's call it supercalifragisticexpialidocious :-)

> I don't think of this stuff as logical const.  Logical const allows const
>  functions to access mutable data.

Like this, you mean?

    class C
    {
        supercalifragisticexpialidocious int x;

        int f() const
        {
            return ++x;
        }
    }

> As proposed, this does not allow that.

I think you'll find it does. :-)



More information about the Digitalmars-d mailing list