lua-users home
lua-l archive

Can I change the for iteraotr variable in a loop?

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


hi list and Roberto :-)
the PiL says you should never change the for iteraotr variable, but I
can not found this in reference, so I want to ask whether this
variable is just a normal variable? that is, if I change its value,
except the value of iterator will reset before the next loop is
executed, what else behavior will happen? or is this a undefined
hebahvior?
regards,
Xavier

AltStyle によって変換されたページ (->オリジナル) /