Crowlang / crow

Crow Lisp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Loop hangs when it ends?

Nodnarb12500 opened this issue · comments

(defvar x 0)
(loop (if (!= x 5)
          (set x (+ x 1))
      )
)

no output and slowly eats ram

(defvar x 0)
(loop (when (< x 5)
          (set x (+ x 1))
          (println x)
      )
)

after getting to the number 5 no output and slowly eats ram