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: Found a bug in guile 1.6.0 Date: 27 Dec 2002 01:02:28 +0100 Organization: Royal Institute of Technology Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <1040947348.28897.26.camel@localhost> References: <200212262346.gBQNkaNc029823@smtp.nada.kth.se> <1040946613.28896.17.camel@localhost> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1040947486 14487 80.91.224.249 (27 Dec 2002 00:04:46 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 27 Dec 2002 00:04:46 +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 18RhzY-0003l8-00 for ; Fri, 27 Dec 2002 01:04:44 +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 18Ri02-00080W-05 for guile-user@m.gmane.org; Thu, 26 Dec 2002 19:05:14 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18Rhzf-0007yj-00 for guile-user@gnu.org; Thu, 26 Dec 2002 19:04:51 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18Rhxt-00078z-00 for guile-user@gnu.org; Thu, 26 Dec 2002 19:03:03 -0500 Original-Received: from smtp.nada.kth.se ([130.237.222.232]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18RhxQ-0006WV-00 for guile-user@gnu.org; Thu, 26 Dec 2002 19:02:32 -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 gBR02UNd029847 for ; Fri, 27 Dec 2002 01:02:31 +0100 (MET) Original-To: guile-user@gnu.org In-Reply-To: <1040946613.28896.17.camel@localhost> 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:1470 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:1470 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