From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Clinton Ebadi Newsgroups: gmane.lisp.guile.devel Subject: Re: AW: define-syntax Date: Tue, 09 Dec 2008 17:28:44 -0500 Message-ID: <87skoxdlur.fsf@unknownlamer.org> References: <3F715C67433E594B88B5ABEBBC6EE49F03E16E84@fe-mail47.de.bosch.com> <49dd78620812091220l449cfcffscb791f4590c0ad0@mail.gmail.com> <3F715C67433E594B88B5ABEBBC6EE49F03E16E88@fe-mail47.de.bosch.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1228861841 18417 80.91.229.12 (9 Dec 2008 22:30:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Dec 2008 22:30:41 +0000 (UTC) Cc: guile-devel@gnu.org To: "Pach Roman \(DGS-EC\/ESG3\)" Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Dec 09 23:31:44 2008 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LAB7I-0004fL-55 for guile-devel@m.gmane.org; Tue, 09 Dec 2008 23:31:44 +0100 Original-Received: from localhost ([127.0.0.1]:37046 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LAB66-0001Pm-TW for guile-devel@m.gmane.org; Tue, 09 Dec 2008 17:30:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LAB4c-0000Zb-IE for guile-devel@gnu.org; Tue, 09 Dec 2008 17:28:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LAB4a-0000YR-Nm for guile-devel@gnu.org; Tue, 09 Dec 2008 17:28:58 -0500 Original-Received: from [199.232.76.173] (port=40683 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LAB4a-0000YN-IK for guile-devel@gnu.org; Tue, 09 Dec 2008 17:28:56 -0500 Original-Received: from deleuze.hcoop.net ([69.90.123.67]:39282) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LAB4Z-0007aS-Vw for guile-devel@gnu.org; Tue, 09 Dec 2008 17:28:56 -0500 Original-Received: from cpe-024-211-230-216.nc.res.rr.com ([24.211.230.216] helo=rvannith) by deleuze.hcoop.net with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1LAB4W-00042O-9T; Tue, 09 Dec 2008 17:28:52 -0500 In-Reply-To: <3F715C67433E594B88B5ABEBBC6EE49F03E16E88@fe-mail47.de.bosch.com> (Pach Roman's message of "Tue, 9 Dec 2008 21:52:34 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:7913 Archived-At: "Pach Roman (DGS-EC/ESG3)" writes: >>> test 2: >>> ------- >>> (define-macro (my-macro-2 par1 par2 par3) >>> (string-concatenate (list par1 par2 par3))) A macro defined with define-macro is merely a function that is run at macroexpansion time and is expected to return a new form for the compiler. The body of the macro can perform arbitrary computation, and your macro is actually calling string-concatenate at macroexpansion time rather than returning the form as you expected. (define-macro (my-macro-2 par1 par2 par3) `(string-concatenate (list ,par1 ,par2, par3))) Will do what you expect. -- How can you accept social supression This weak state of mind in our time I demand release from hypocrisy I'd rather die than be held down, forced down