[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: My First Computer



BJ <dontspamme@nosirree.net> writes:

>>>>while( printf("Hello\n"), 1 );

>>>I also found out that __ for(;printf("Hello\n");); __ works equally 
>>>well as the while statement, although both will have a conditional 
>>>to check for every loop.

>>for(;;printf("Hello\n"));
>>Anyway, using while() or for() to implement this is silly: C *has* goto :-)

>Well, let's add Logo, why don't we?
>TO HELLO
>PRINT [Hello]
>HELLO
>END

I should think you'll exhaust your stack in no time with that kind of
recursion.

--
      Cameron Kaiser * ckaiser@floodgap.com * posting with a Commodore 128
                personal page: http://www.armory.com/%7Espectre/
  ** Computer Workshops: games, productivity software and more for C64/128! **
                  ** http://www.armory.com/%7Espectre/cwi/ **