for in Iteration statements

29 views
Skip to first unread message

Sergey Panin

unread,
Sep 9, 2016, 6:53:24 AM9/9/16
to ISO C++ Standard - Discussion
Hi all!

May be there is a mistake in (6.5 Iteration statements) (n4606.pdf)
for ( init-statement conditionopt ; expressionopt ) statement

the ; is missed?

I think that is right.
for ( init-statement; conditionopt expressionopt statement

Christof Meerwald

unread,
Sep 9, 2016, 10:13:16 AM9/9/16
to std-dis...@isocpp.org
On Fri, Sep 09, 2016 at 03:53:24AM -0700, Sergey Panin wrote:
> May be there is a mistake in (*6.5 Iteration statements*) (n4606.pdf)
> for ( *init-statement condition**opt *; *expression**opt *) *statement*
>
> the ; is missed?

No, the init-statement includes the semicolon at the end.


Christof

--

http://cmeerw.org sip:cmeerw at cmeerw.org
mailto:cmeerw at cmeerw.org xmpp:cmeerw at cmeerw.org
Reply all
Reply to author
Forward
0 new messages