Path: utzoo!attcan!uunet!microsoft!jimad From: jimad@microsoft.UUCP (Jim ADCOCK) Newsgroups: comp.lang.c++ Subject: Re: Order of evaluation bug in Stroustrup? Message-ID: <59676@microsoft.UUCP> Date: 10 Dec 90 19:44:19 GMT References: <1160@teslab.lab.OZ> Reply-To: jimad@microsoft.UUCP (Jim ADCOCK) Organization: Microsoft Corp., Redmond WA Lines: 8 The ability to declare a variable in the for loop was left out of one preliminary version of the C++ reference manual, with the result that some compilers implemented during that brief time frame do not allow declaration of the loop variable inside the for loop. C++ compilers implemented before and after that time period do support declaration of the loop variable inside the for statement. Such use is common within the C++ community, and supported by the current working papers of the ANSI-C++ committee.