PhobosWatch: manifest => enum

Walter Bright newshound1 at digitalmars.com
Fri Dec 28 17:06:02 PST 2007


Derek Parnell wrote:
> If what we are talking about is having the compiler detect if some code is
> taking the address of a constant value, doesn't the compiler need to see
> the code that does that? And if that code is in an object file and not a
> source file, then how will the compiler find out that the address is being
> taken?

What happens is the compiler emits data to the object file whenever the 
address of a constant is taken, regardless of what module defines the 
constant. Then, the linker removes the duplicates.



More information about the Digitalmars-d mailing list