Block close check

Luís Marques luismarques+spam at gmail.com
Mon Dec 11 15:44:52 PST 2006


Brad Roberts wrote:
> Having the compiler care about contents of a comment is a dangerous 
> slippery slope.  If you want to do this in some sort of a lint-esque 
> tool, then go for it, I guess.

Well, if you are having the compiler "lint" the code that it would 
probably be best if it just checked for coherent indentation.

E.g.

if(bla)
   do1();
   do2(); // lint warning/error! (inconsistent syntax/indentation)
else
   do3();



More information about the Digitalmars-d mailing list