PhobosWatch: manifest => enum

Derek Parnell derek at psych.ward
Fri Dec 28 14:07:47 PST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 28 Dec 2007 21:59:54 +0100, "Jérôme M. Berger" wrote:

> 	Right. Replace "const" by "invariant" in my comment and the main
> point still stands: couldn't the compiler determine automatically if
> we take the address of an invariant variable and allocate memory for
> it or not based on that? This would remove the need for a special
> keyword/syntax for manifest constants: just declare them as
> "invariant" and let the compiler do the work.

In order to do that, won't the compiler need to have access to all the
source code for the application? If so, how can the compiler do it when
given some source code and some object code to build the application?

- -- 
Derek Parnell
Melbourne, Australia
skype: derek.j.parnell
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32) - WinPT 1.2.0

iD8DBQFHdXOUB2Z2alRbg5gRAgZlAKCna1d2thleArou/ETBguEjzwCUHwCfbCAg
uq1e/ExdqDzU33RGI2SDfvU=
=Gi+6
-----END PGP SIGNATURE-----



More information about the Digitalmars-d mailing list