Search found 1 match

by rapega
Sun Jun 03, 2012 5:49 am
Forum: Anything else we might add?
Topic: Tail Recusion
Replies: 7
Views: 9482

Tail Recusion

Hi,

I am new to newlisp and did my standard test to it:

(define (mt n) (println n)(mt (+ 1 n)))
(mt 1)

that should run infinte in any tail recursive lisp.
It crashed at 2048 in newlisp, but amazingly fast!

Is there no tail recursion detection or am doing it wrong?

Thank you,

Ralf