| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | timer_t |
Thu 2003-06-12 15:18, Bo Simonsen (2:236/100) wrote to Vince Coen:
BS> Wes must have forgot to apply the btree changes i send... Scott loves to use
BS> for(int i=0; ...; i++)
BS> But by ANSI C++ it's illegal it should be
BS> int i;
BS> for(i=0; ...; i++)
Hmm, I sent Wesley the same fixes! :-)
FWIW, the problem was that in Standard C++ you could no longer do:
for (int i = 0; ...; i++)
{
/* do something with i */
}
/* do some more with i */
because i was no longer visible outside the for(){..} block.
Although, because i isn't declared inside the curly braces then you might
think that it should be visible to the code below the the for(){..} block.
This is probably something the C++ committee agonised over for months. :-)
-- mail{at}ozzmosis.com
--- timEd/FreeBSD 1.11.b1
* Origin: Blizzard of Ozz, Mt Eliza, Melbourne, Australia (3:633/267)SEEN-BY: 633/267 270 @PATH: 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.