Re: Dangling Else, Yet Again

2011-09-23 Thread deadalnix
Le 23/09/2011 05:38, Andrei Alexandrescu a écrit : http://www.reddit.com/r/programming/comments/kooiy/dangling_else_yet_again/ Andrei This is a great idea. I'm used to use tools like checkstyle in java (or some others depending on the language) that trigger an error if an if statement withou

Re: Dangling Else, Yet Again

2011-09-22 Thread Nick Sabalausky
"Andrei Alexandrescu" wrote in message news:j5gv0j$825$1...@digitalmars.com... > http://www.reddit.com/r/programming/comments/kooiy/dangling_else_yet_again/ > > Andrei "It works by keeping track of any lexically enclosing statement that is looking for an else clause, so if an else clause is fou

Dangling Else, Yet Again

2011-09-22 Thread Andrei Alexandrescu
http://www.reddit.com/r/programming/comments/kooiy/dangling_else_yet_again/ Andrei