This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
What is c-iterate.c good for?
- To: egcs at cygnus dot com
- Subject: What is c-iterate.c good for?
- From: Bernd Schmidt <crux at pool dot informatik dot rwth-aachen dot de>
- Date: Mon, 22 Jun 1998 15:19:29 +0200 (MET DST)
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