Hm, I would guess that the self-call gets "hard-wired", since if you
define fib thus:
(defn fib [n]
(if (#{0 1} n)
n
(+ (#'fib (- 2 n)) (#'fib (dec n)))))
then it works as you expect.
Not that I'm really sure what's happening; just a conjecture. Also, I
believe I already bumped into this behaviour when playing with
alternative tracing schemes, but never realised its new to 1.2...
interesting.
Sincerely,
Michał
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en