> numiters = 0
> for iter=1:maxiter
>    numiters = iter
>    update!(state)
>    check_termination(state) && break
> end

But that pattern would work just as well with the new scheme.  What
would not work anymore is the slightly shorter:

iter = 0
for iter=1:maxiter
   update!(state)
   check_termination(state) && break
end
# new: iter==0
# current: iter=loop-iter

Reply via email to