[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Geiser-users] Tracing function calls with guile

From: Ivan Sichmann Freitas
Subject: [Geiser-users] Tracing function calls with guile
Date: Tue, 2 Jul 2013 05:12:59 -0300
User-agent: Mutt/1.5.21 (2010-09-15)


I'm unable to get traces with geiser's guile repl. Consider this

(define (square x) (* x x))
(define (fast-expt-iter b n a count)
  (if (= count n)
      (if (< (- n count) 2)
          (fast-expt-iter b n (* b a) (+ count 1))
          (fast-expt-iter b n (* a (square b)) (+ count 2)))))

Using ,trace (fast-expt-iter 4 8 1 0) in the repl yields no output, but
in the standard guile repl it prints execution's trace. In geiser's,
even using ,option trace #t made no difference.

Am I doing something wrong when tracing or it is tracing not supported
by guile?


Ivan Sichmann Freitas
GNU/Linux user #509059
SDF MetaArpa Member
Phone: +55 (19) 8227 8610

Attachment: pgpOl2M4dvnA0.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]