in reply to It is weird, it is mad, but is it portable? (foreach question)

it is guaranteed that we won't go to infinite recursion due to include files indirectly included into themselves

I must be missing something here. In the following case we do have an infinite loop:

  1. @ctOutput = ('include weird.1');
  2. file 'weird.1' contains include weird.2
  3. file 'weird.2' contains include weird.1

How come it is guaranteed infinite recursion will not happen?

Replies are listed 'Best First'.
Re^2: It is weird, it is mad, but is it portable? (foreach question)
by ysth (Canon) on May 21, 2008 at 02:00 UTC
    I assume the "in this particular case" was meant to indicate that the data has no such recursive references, not that the code would avoid infinite recursion.