guile-user
[Top][All Lists]
Advanced

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

Re: Expansion of a macro


From: Mark H Weaver
Subject: Re: Expansion of a macro
Date: Mon, 20 Apr 2015 21:32:48 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

A0 <address@hidden> writes:
> How can one find out what a macro expands to?

You can use the ,expand REPL command, e.g.:

scheme@(guile-user)> ,expand (do ((n 10 (- n 1))) ((zero? n) n))
$1 = (let loop ((n 10))
  (if (zero? n)
    (begin (if #f #f) n)
    (loop (- n 1))))

      Mark



reply via email to

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