How about "inline" for manifest constants?

Russell Lewis webmaster at villagersonline.com
Sun Dec 9 22:17:04 PST 2007


inline int x = 3;

Where the "inline" keyword means "the compiler is free to not allocate 
any storage for this constant."  In particular, this means that it would 
be a syntax error to either:
	1) Take the address of an inline constant
	2) Change its value

Whether or not the compiler actually inlines all instances or not is 
implementation-specific.



More information about the Digitalmars-d mailing list