unpaintable (the solution to logical const)

Janice Caron caron800 at googlemail.com
Fri Apr 4 11:47:27 PDT 2008


On 04/04/2008, Janice Caron <caron800 at googlemail.com> wrote:
> On 04/04/2008, Simen Kjaeraas <simen.kjaras at gmail.com> wrote:
>
> >  Now to find a better name than paintable, and convincing Walter...
>
>
> Actually, all fields are paintable by default. It's the /un/paintable
>  ones that need a keyword. In C++, that keyword is "mutable", but
>  that's inappropriate for D.

My favorite keyword for this purpose is "exotic". Exotic fields
exhibit strange behavior - you can't paint them with constancy; they
should take no part in opEquals() or opCmp() or hash(). Strange
indeed. And while "unpaintable" is very useful as a description, it is
a little on the long side for an actual keyword.

That said, I'm with Stephen on this one. If we get the functionality,
I won't be complaining about the keyword.



More information about the Digitalmars-d mailing list