[comp.lang.c++] Turbo C++ and auto variables

wmmiller@cup.portal.com (William Michael Miller) (06/27/90)

> Can someone clarify where [if anywhere] this restriction is stated of [sic]
> implied in the 2.0 spec?

Sure.  In the May, 1989 draft, section 6.5.3 "For Statement," the last
paragraph reads, "A for-statement containing a declaration in its
for-init-statement may not be the statement after an if, else, switch, while,
do, or for.  This restriction follows from the rule against jumping past
initialized declarations (section 6.6)."

I think Borland can be forgiven for having implemented the spec.

-----------------------------------------------------------------------------
William M. Miller, Glockenspiel, Inc.; P. O. Box 366, Sudbury, MA 01776-0003
wmmiller@cup.portal.com         BIX: wmiller            CI$: 72105,1744