unpaintable (the solution to logical const)
Leandro Lucarella
llucax at gmail.com
Fri Apr 4 15:32:29 PDT 2008
Janice Caron, el 4 de abril a las 19:47 me escribiste:
> 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.
All you are describing is data that don't belong to the class, so why to
insist in putting in it?
> That said, I'm with Stephen on this one. If we get the functionality,
> I won't be complaining about the keyword.
The functionality is already there!
--
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
----------------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------------
FINALMENTE EL CABALLITO FABIAN VA A PASAR UNA BUENA NAVIDAD
-- Crónica TV
More information about the Digitalmars-d
mailing list