wvdlaan (2) [Avatar] Offline

First of all: Thanks for writing this great book. I love it.

I've just tried the finite state machine example and it throws a stackoverflow for:
(elevator (conj (vec (take 10000 (cycle [:close :open]))) :done))

The codes worked fine once I replaced the 4 letfn functions with regular defn's (starting with a declare).


wvdlaan (2) [Avatar] Offline
Re: Error in trampoline code (listing 7.6)
I apologize, the code runs fine. I restarted emacs/swank and for some reason it now works fine.

I guess I will have to restart the REPL once in a while.