From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.user Subject: Re: Mixing syntax-rule and indentifier-syntax Date: Tue, 17 Jan 2012 10:22:14 +0100 Message-ID: <87sjjeheex.fsf@pobox.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1326792160 26161 80.91.229.12 (17 Jan 2012 09:22:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 Jan 2012 09:22:40 +0000 (UTC) Cc: guile-user@gnu.org To: Tobias Brandt Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Jan 17 10:22:35 2012 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rn5FT-0006AW-4j for guile-user@m.gmane.org; Tue, 17 Jan 2012 10:22:35 +0100 Original-Received: from localhost ([::1]:45052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rn5FR-0000uz-OP for guile-user@m.gmane.org; Tue, 17 Jan 2012 04:22:33 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:56307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rn5FJ-0000ub-4H for guile-user@gnu.org; Tue, 17 Jan 2012 04:22:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rn5FD-0007xz-1m for guile-user@gnu.org; Tue, 17 Jan 2012 04:22:25 -0500 Original-Received: from a-pb-sasl-sd.pobox.com ([74.115.168.62]:51254 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rn5FC-0007xv-VS for guile-user@gnu.org; Tue, 17 Jan 2012 04:22:19 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 0BD8E6E08; Tue, 17 Jan 2012 04:22:18 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=zs88+jTssQ7zvMZV+/bgtuOkRbg=; b=eMBBFM yUmIm0ShQKdONOn3yO2F1SD7XfcT7wPjQYMgVzLBl81rOlB+3A1+IvZJ6V3gw3hq +CYmD046RONjLWh1Nj/WIbIifhmLJKmoDoYfn0RER9COctgGPxLJ1rVJCVXW9OFZ E8O2vgBd+xIZniblbb+pm7UvarV9kmbmlgZrk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=oTjuZjmNarxKbsidWJ2SRwupEKADtjpR anrLV/hpe1xLJr+qyjobhv2G4UkC3sHASS0QAIY+39ikd5rTcL/8mBu/MsqU9Pzu GQPuCFnH7wfAaoVj2gnBpMj9K+3J8mZBFqMHZP27+tf4CzwhmYpmz92bdHqB/7qh Qe2TosvdNFE= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 03FF96E07; Tue, 17 Jan 2012 04:22:18 -0500 (EST) Original-Received: from badger (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 5C2916E06; Tue, 17 Jan 2012 04:22:17 -0500 (EST) In-Reply-To: (Tobias Brandt's message of "Tue, 17 Jan 2012 00:11:49 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-Pobox-Relay-ID: BFFBE99A-40EC-11E1-BFC0-65B1DE995924-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 74.115.168.62 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:9153 Archived-At: On Tue 17 Jan 2012 00:11, Tobias Brandt writes: > I want to define a macro `with-vectors` that transforms this: > > (with-vectors (v) > (v 0) > (set! (v 0) 'foo) > (some-procedure v)) We currently don't have good support in the expander for variable transformers that take arguments. You can use a procedure-with-setter, perhaps. Another option would be to alias specific elements of your vector to identifiers: http://thread.gmane.org/gmane.lisp.guile.user/8724/focus=9100 Andy -- http://wingolog.org/