From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Roland Orre Newsgroups: gmane.lisp.guile.user Subject: Re: Returned mail: see transcript for details Date: 27 Dec 2002 00:50:13 +0100 Organization: Royal Institute of Technology Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <1040946613.28896.17.camel@localhost> References: <200212262346.gBQNkaNc029823@smtp.nada.kth.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1040946850 12710 80.91.224.249 (26 Dec 2002 23:54:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 26 Dec 2002 23:54:10 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18RhpJ-0003Io-00 for ; Fri, 27 Dec 2002 00:54:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18RhoB-0005jf-0A for guile-user@m.gmane.org; Thu, 26 Dec 2002 18:52:59 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18RhnD-0005N6-00 for guile-user@gnu.org; Thu, 26 Dec 2002 18:51:59 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18Rhm8-0004tF-00 for guile-user@gnu.org; Thu, 26 Dec 2002 18:50:53 -0500 Original-Received: from smtp.nada.kth.se ([130.237.222.232]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18Rhla-0004oF-00 for guile-user@gnu.org; Thu, 26 Dec 2002 18:50:18 -0500 X-Authentication-Info: Sender authentication was Original-Received: from [10.2.0.2] (h122n2fls33o875.telia.com [217.208.54.122]) (authenticated bits=0) by smtp.nada.kth.se (8.12.1/8.12.1) with ESMTP id gBQNoFNd029828 for ; Fri, 27 Dec 2002 00:50:17 +0100 (MET) Original-To: guile-user@gnu.org In-Reply-To: <200212262346.gBQNkaNc029823@smtp.nada.kth.se> X-Mailer: Ximian Evolution 1.2.0 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: General Guile related discussions List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:1469 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:1469 > On Fri, 2002-12-27 at 00:08, Marius Vollmer wrote: > > The best solution is not to use procedure->macro. Use define-macro > (or defmacro) or define-syntax. > > You could try > (define-macro (push! stack obj) > `(set! ,stack (cons ,obj ,stack))) > Thanks, that macro definition works fine. I did, however, as this macro is used in several places in my code, just convert it to a SCM_SYNTAX which also solved the problem. The problem occured when I was checking my old code for our recent conversion to guile 1.6. In most places the old procedure->macro worked well though. > (Just curious: where did you learn about procedure->macro? we don't > want people to use it.) It's a remaining in my code from around 1990, long before guile, when I was a heavily scm (which guile is based upon) user. It seems as I should try to adapt to the new macros :) Thanks once again! Best regards Roland _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user