Path: utzoo!attcan!uunet!samsung!usc!apple!portal!cup.portal.com!wmmiller From: wmmiller@cup.portal.com (William Michael Miller) Newsgroups: comp.lang.c++ Subject: Re: Turbo C++ and auto variables Message-ID: <31195@cup.portal.com> Date: 27 Jun 90 15:27:36 GMT References: <284@fjcp60.GOV> <55402@microsoft.UUCP> <4617@darkstar.ucsc.edu> <55434@microsoft.UUCP> Organization: The Portal System (TM) Lines: 14 > 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