PhobosWatch: manifest => enum
"Jérôme M. Berger"
jeberger at free.fr
Fri Dec 28 02:51:46 PST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Walter Bright wrote:
> Jérôme M. Berger wrote:
>> :(
>
> Yeah, I figure I'll get fricasseed over that one. The most compelling
> argument is that we already have 3 ways to declare a constant, adding a
> fourth gets very difficult to justify. As opposed to a minor extension
> to enums.
This is an artificial distinction: you *are* adding a fourth way to
declare a constant, the only question is what syntax to use: either
a counter-intuitive extension to enums or a new keyword (or a minor
extension to the alias keyword as was suggested by somebody).
BTW, I think it was Janice who suggested that the compiler should
know whether a constant needs to be manifest or not (depending on
whether its address is taken somewhere). This would remove the need
for a way to distinguish manifest constants explicitly. Any thoughts
on that?
Jerome
- --
+------------------------- 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)
iD8DBQFHdNVCd0kWM4JG3k8RAu1kAJ97kgXJW4tIcb0ZQYPHNHjmFe+JiwCggGuI
GIlw7vHFlXSNCFo5qI1pSYA=
=FcvO
-----END PGP SIGNATURE-----
More information about the Digitalmars-d
mailing list