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]

What is c-iterate.c good for?


By reading c-parse.in I managed to construct a program using iterators:

int main ()
{
  __iterator i = 2;

  for (i)
    printf ("Hello, world\n");
  return 0;
}

This prints "Hello, world" twice. Now, my question is: what is this good for?
It's a GCC extension, but it isn't documented, and I don't really see the
point of it. Does anyone use it? Is the above all that can be done with it?

If there is no good reason to have it, maybe it should go the way of the
bytecode stuff?

Bernd


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