This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]