Nigel Stewart wrote:
>
> > : From the viewpoint of a computer scientist (I'm one) this is a not a
> > : syntactically correct defiend for-loop. The variable of a for-loop
> > : belongs to the for-command and should be never _changable_ by the user.
>
> I strongly disagree. It is in fact syntactically correct,
> and there is no theoretical reason that the loop variable
> is more sacred than any other variable.
for j = 1 to 10 step 1
for i = 1 to 10 step 1
if (i = 4) and (j = 2) and keypressed(E or e) then i = 2 and j =
4
next i
next j
--
A free internet for a free people.
Post a reply to this message
|