Re: [Epic] Will it, won't it...
I wrote:
> James Topa wrote:
>> 10 Let HotPotato=0
>> 20 HotPotato=HotPotato+1
>> 30 Goto 10
>> 40 End
>
> Tsk! That'll just loop forever, as you redefine HotPotato as 0 everytime you
> goto 10. It's a badly written piece of code. :)
I should refine that statement: it'd loop forever no matter what because there
are no conditions for the loop to end and the 'let' is unnecessary. You should
use an IF-THEN loop if you actually want to make sense. Right now, if it were
written so as the data were to be printed, it would be
0
1
0
1
0
... ad infinitum.
So, bleh.
Shervin
Received on Thu Oct 01 1998 - 02:12:56 UTC
This archive was generated by hypermail 2.3.0
: Tue Oct 22 2019 - 13:10:55 UTC