From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Dzhus Newsgroups: gmane.lisp.guile.user Subject: Looping local binding Date: Mon, 29 Oct 2007 19:28:56 +0300 Message-ID: <877il5j35j.fsf@sphinx.net.ru> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1193682626 2221 80.91.229.12 (29 Oct 2007 18:30:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Oct 2007 18:30:26 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Oct 29 19:30:27 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 1ImZNY-0004Y9-ON for guile-user@m.gmane.org; Mon, 29 Oct 2007 19:30:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImZNP-0005fP-Hw for guile-user@m.gmane.org; Mon, 29 Oct 2007 14:30:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ImZNL-0005eK-1o for guile-user@gnu.org; Mon, 29 Oct 2007 14:30:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ImZNJ-0005cQ-Se for guile-user@gnu.org; Mon, 29 Oct 2007 14:30:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImZNJ-0005c3-FJ for guile-user@gnu.org; Mon, 29 Oct 2007 14:30:09 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ImZNJ-0008Nr-1d for guile-user@gnu.org; Mon, 29 Oct 2007 14:30:09 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1ImZNC-0007wP-9d for guile-user@gnu.org; Mon, 29 Oct 2007 18:30:02 +0000 Original-Received: from 89-178-0-121.broadband.corbina.ru ([89.178.0.121]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Oct 2007 18:30:02 +0000 Original-Received: from mail by 89-178-0-121.broadband.corbina.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Oct 2007 18:30:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 33 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 89-178-0-121.broadband.corbina.ru User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (gnu/linux) Cancel-Lock: sha1:ZBHauuHK4O43OJiPRPTBp+5aIrg= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:6249 Archived-At: Greetings! I've got the following lines in my code: (let* ((method (option-ref options 'method "fundmatrix")) ;; Command line options override ones in statement file (right-bound (string->number (option-ref options 'right-bound (number->string right-bound)))) (wave-number (string->number (option-ref options 'wave-number (number->string wave-number)))) (subintervals (string->number (option-ref options 'subintervals (number->string subintervals)))) (test-epsilon (string->number (option-ref options 'test-epsilon (number->string test-epsilon))))) ) Looks like total mess, doesn't it? Is there any way to rewrite this somehow, say using a loop over a list '(right-bound wave-number subintervals test-epsilon) ? Desperately I tried to perform local binding using `(let (map ..`, but obviously that couldn't work. -- Happy Hacking. Dmitry "Sphinx" Dzhus http://sphinx.net.ru _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user