PhobosWatch: manifest => enum
"Jérôme M. Berger"
jeberger at free.fr
Wed Jan 2 04:44:17 PST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Walter Bright wrote:
> I did think of doing that way, but:
>
> 1) it's too complicated to explain, too many special cases
>
True
> 2) Andrei pointed out to me that now the const-ness of a struct can
> depend on its private data types. This would suck for users, as private
> data is supposed to be opaque to users.
True, I hadn't thought of that. Too bad, it would have been a
pretty nifty feature.
Jerome
PS: Just so we're sure what I'm agreeing about here: automatic
manifest constants probably can't work (unless we drop the "auto"
type inference which is too useful to remove). OTOH, I still think
that using "enum" for them is a poor choice.
- --
+------------------------- Jerome M. BERGER ---------------------+
| mailto:jeberger at free.fr | ICQ: 238062172 |
| http://jeberger.free.fr/ | Jabber: jeberger at jabber.fr |
+---------------------------------+------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
iD8DBQFHe4cdd0kWM4JG3k8RAm7jAJ4rG2AOe9jOMCzRl/xlSGzBn+kczQCeJGL5
zln2XiVTbC9O5QF3wXlvIPE=
=E2Ur
-----END PGP SIGNATURE-----
More information about the Digitalmars-d
mailing list