It means that const variables get written to the location they are referenced from. So, say you have an 2 libraries, one with a const
variable:
// Library A
const int TEST = 1;
// Library B
void m ()
{
Console.WriteLine(A.TEST);
}
The variable is actually written, at compile time, into B. The difference is, if you recompile A but not B, B will have the "old" value. This won't happen with readonly
variables.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…