From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Pirotte Newsgroups: gmane.lisp.guile.user Subject: syntax-rules problem Date: Sun, 3 Apr 2011 01:34:43 -0300 Message-ID: <20110403013443.550efff5@rascar> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1301805307 19308 80.91.229.12 (3 Apr 2011 04:35:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 3 Apr 2011 04:35:07 +0000 (UTC) To: guile-user Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Apr 03 06:35:03 2011 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q6F1j-0005tW-Cp for guile-user@m.gmane.org; Sun, 03 Apr 2011 06:35:03 +0200 Original-Received: from localhost ([127.0.0.1]:50111 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q6F1i-0001wP-5Y for guile-user@m.gmane.org; Sun, 03 Apr 2011 00:35:02 -0400 Original-Received: from [140.186.70.92] (port=42749 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q6F1d-0001wB-GB for guile-user@gnu.org; Sun, 03 Apr 2011 00:34:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q6F1c-0003op-BC for guile-user@gnu.org; Sun, 03 Apr 2011 00:34:57 -0400 Original-Received: from maximusconfessor.all2all.org ([62.58.108.13]:48456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q6F1c-0003oB-40 for guile-user@gnu.org; Sun, 03 Apr 2011 00:34:56 -0400 Original-Received: from localhost (unknown [192.168.0.2]) by maximusconfessor.all2all.org (Postfix) with ESMTP id B85B0A04C144 for ; Sun, 3 Apr 2011 06:34:53 +0200 (CEST) Original-Received: from maximusconfessor.all2all.org ([192.168.0.1]) by localhost (maximusconfessor.all2all.org [192.168.0.2]) (amavisd-new, port 10024) with ESMTP id KIbsuCYnnrR1 for ; Sun, 3 Apr 2011 06:18:14 +0200 (CEST) Original-Received: from rascar (unknown [189.60.162.71]) by maximusconfessor.all2all.org (Postfix) with ESMTPSA id A60E2A04C140 for ; Sun, 3 Apr 2011 06:34:46 +0200 (CEST) X-Mailer: Claws Mail 3.7.8 (GTK+ 2.24.3; i486-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 62.58.108.13 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8572 Archived-At: Hello, guile version: 2.0.0.160-39be this used to work: (define-syntax push* (syntax-rules () ((push* . ?args) (set! (car (last-pair ?args)) (cons* ?args))) )) scheme@(guile-user)> (define ll '(1 2 3 4 5)) scheme@(guile-user)> (push* 'a 'b ll) ERROR: In procedure setter: ERROR: In procedure setter: Wrong type argument in position 1: # Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(guile-user) [1]> ,bt In current input: 3:0 1 (#:3:0 ()>) In unknown file: 0 (setter #) scheme@(guile-user) [1]> Cheers, David