Dangling Else, Yet Again
Nick Sabalausky
a at a.a
Thu Sep 22 22:38:11 PDT 2011
"Andrei Alexandrescu" <SeeWebsiteForEmail at erdani.org> wrote in message
news:j5gv0j$825$1 at 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 found for the current
statement without a following { }, then it is marked as illegal."
Can someone explain that for me? (My brain is completely scrambled right now
from a nasty Flash/IE bug.)
More information about the Digitalmars-d
mailing list