Crawler Tractor doesn't work indefinitely for macros.
Posted: Thu Oct 15, 2009 1:14 pm
Code: Select all
(define (crawler-tractor )
(begin (println "Hi for the " (inc counter) ". time. ")
(push (last crawler-tractor) crawler-tractor -1)
(when (> (length crawler-tractor) 3)
(pop crawler-tractor 1))))
Code: Select all
(define-macro (crawler-tractor )
(begin (println "Hi for the " (inc counter) ". time. ")
(push (last crawler-tractor) crawler-tractor -1)
(when (> (length crawler-tractor) 3)
(pop crawler-tractor 1))))
