const again

sambeau no-spam-for-sambeau at mac.com
Thu Dec 6 15:49:46 PST 2007


Walter Bright Wrote:

> That leaves what to do about manifest constants. It occurs that we 
> already have a mechanism for them - enums. So why not:
> 	enum x = 3;
> 	enum long y = 4;
> ? I think that solves our problem.

Rather than re-using enum (and confusing me) why not use 'define' eg:-

define x = 3;
define long y = 4;

You can then 
  a) emphasise 'definite' in the docs: "Having distinct limits", "Indisputable; certain", "Clearly defined; explicitly precise"  
while 
  b) comforting C users.



More information about the Digitalmars-d mailing list