TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: HERMAN SCHONFELD
from: DARIN MCBRIDE
date: 1998-04-11 22:56:00
subject: Event Handler

BB>    Yup. I did all that routinely, Herman, but 'for' loops require an
BB>int as control variable, don't they?
Bill,
  No, for loops can use whatever you want.  One often used method in linked 
lists is traversing them:
list* l;
for (l = FirstListItem(); l = ListNext(l); IsEndOfList(l))
{
  /* code */
}
 HS> Since when?  Most compilers accept non-standard code, 
 HS> so there's no use bitching about ansi-c rules, is 
 HS> there? Why? Because I really don't care. If it compiles 
 HS> and works efficiently it good enough for me.
Why do we concern ourselves with ANSI rules?  So that when we post our 
questions and problems, that we can understand each other.  And so that when 
we post our code, that others can use it.
---
---------------
* Origin: Tanktalus' Tower BBS (1:250/102)

SOURCE: echomail via exec-pc

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™.