From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Marco Maggi" Newsgroups: gmane.lisp.guile.user Subject: Re: with-slot syntax how to Date: Sat, 13 Oct 2007 08:12:15 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1192255962 19624 80.91.229.12 (13 Oct 2007 06:12:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 Oct 2007 06:12:42 +0000 (UTC) To: "guile-user" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Oct 13 08:12:32 2007 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.50) id 1IgaEh-0001FH-PP for guile-user@m.gmane.org; Sat, 13 Oct 2007 08:12:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IgaEa-0004nS-SL for guile-user@m.gmane.org; Sat, 13 Oct 2007 02:12:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IgaEW-0004lP-SA for guile-user@gnu.org; Sat, 13 Oct 2007 02:12:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IgaEV-0004iI-7s for guile-user@gnu.org; Sat, 13 Oct 2007 02:12:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IgaEU-0004ht-UA for guile-user@gnu.org; Sat, 13 Oct 2007 02:12:19 -0400 Original-Received: from relay-pt2.poste.it ([62.241.5.253]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IgaEU-0002JJ-GD for guile-user@gnu.org; Sat, 13 Oct 2007 02:12:18 -0400 Original-Received: from poste.it (192.168.144.185) by relay-pt2.poste.it (7.3.122) (authenticated as marco.maggi-ipsu@poste.it) id 470FFCE1000080EE for guile-user@gnu.org; Sat, 13 Oct 2007 08:12:15 +0200 X-Sensitivity: 3 X-XaM3-API-Version: 4.3 (R1) (B3pl19) X-SenderIP: 83.190.104.123 X-detected-kernel: by monty-python.gnu.org: Solaris 9 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:6214 Archived-At: damn: (define-syntax with-slots (syntax-rules () ;;this is here only to let me remove the bindings while ;;debugging the form ((_ ((() () ?object)) ?form ...) (begin ?form ...)) ((_ (((?sym ...) (?slot ...) ?object)) ?form ...) (let ((?sym (slot-ref ?object '?slot)) ...) ?form ...)) ((_ (((?sym1 ...) (?slot1 ...) ?object1) ((?sym2 ...) (?slot2 ...) ?object2) ...) ?form ...) (with-slots (((?sym1 ...) (?slot1 ...) ?object1)) (with-slots (((?sym2 ...) (?slot2 ...) ?object2) ...) ?form ...))))) -- Marco Maggi "Now feel the funk blast!" Rage Against the Machine - "Calm like a bomb" _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user