From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.user Subject: Re: Expansion of a macro Date: Mon, 20 Apr 2015 21:32:48 -0400 Message-ID: <87mw22p8ov.fsf@netris.org> References: <55351C33.7000505@openmailbox.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1429579964 7488 80.91.229.3 (21 Apr 2015 01:32:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Apr 2015 01:32:44 +0000 (UTC) Cc: guile-user@gnu.org To: A0 Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Apr 21 03:32:38 2015 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YkN3F-000549-Ti for guile-user@m.gmane.org; Tue, 21 Apr 2015 03:32:38 +0200 Original-Received: from localhost ([::1]:55873 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkN3F-0007Fj-99 for guile-user@m.gmane.org; Mon, 20 Apr 2015 21:32:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkN36-0007FQ-0v for guile-user@gnu.org; Mon, 20 Apr 2015 21:32:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YkN31-00039r-2R for guile-user@gnu.org; Mon, 20 Apr 2015 21:32:27 -0400 Original-Received: from world.peace.net ([50.252.239.5]:39331) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkN30-00036R-Vs for guile-user@gnu.org; Mon, 20 Apr 2015 21:32:23 -0400 Original-Received: from [10.1.10.78] (helo=jojen) by world.peace.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1YkN2k-0004Dt-Jv; Mon, 20 Apr 2015 21:32:06 -0400 In-Reply-To: <55351C33.7000505@openmailbox.org> (cape.wrath@openmailbox.org's message of "Mon, 20 Apr 2015 16:33:07 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 50.252.239.5 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:11809 Archived-At: A0 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