How about 'constant' for manifest constants

Chris Paulson-Ellis chris at edesix.com
Sun Dec 16 03:50:16 PST 2007


How about...

   constant int three = 3;

...leaving const, enum, alias, final, etc. un-overloaded.

Having 2 similar keywords encourages the programmer consider the 
difference between them.

'constant's are decidely more constant than 'const's.

I know you didn't want another pointless thread, but I've only just read 
  (well skimmed) them all and just can't resist.

Sorry,
Chris.



More information about the Digitalmars-d mailing list