[Assorted-commits] SF.net SVN: assorted: [599] sandbox/trunk/src/cc/scopes.cc
Brought to you by:
yangzhang
From: <yan...@us...> - 2008-03-04 04:12:31
|
Revision: 599 http://assorted.svn.sourceforge.net/assorted/?rev=599&view=rev Author: yangzhang Date: 2008-03-03 20:12:34 -0800 (Mon, 03 Mar 2008) Log Message: ----------- added clarification Modified Paths: -------------- sandbox/trunk/src/cc/scopes.cc Modified: sandbox/trunk/src/cc/scopes.cc =================================================================== --- sandbox/trunk/src/cc/scopes.cc 2008-03-04 04:11:53 UTC (rev 598) +++ sandbox/trunk/src/cc/scopes.cc 2008-03-04 04:12:34 UTC (rev 599) @@ -15,7 +15,7 @@ // The following doesn't work; x is out of scope. // cout << x << endl; - // Here, the initialization to 1 occurs on each iteration. + // Here, the initialization to 1 occurs on each iteration, so this loops forever! while (int x = 1) { cout << x-- << endl; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |