const int vs. int const

John via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 15 10:05:53 PDT 2014


This may be a silly issue, but I recently read the better 
practice is to begin with the variable type followed by const 
keyword, but that order doesn't work in D. Is that intentional?

   int const minWage = 11; //Error: no identifier for declarator 
int
   //const int minWage = 11; //works


More information about the Digitalmars-d mailing list