This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Question on tree-walking and mutually-recursive types
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: matz at suse dot de
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 29 Jun 04 07:26:06 EDT
- Subject: Re: Question on tree-walking and mutually-recursive types
??? Zack's loop is "do {} while (p);". It stops after p traversed the
list exactly once (after which q has traversed it half way).
Remember that if there *is* a cycle, then the list is infinite, so it
won't stop until it finds the cycle. It can only "traverse the list" if
there is *no* cycle.