From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rick Taube Newsgroups: gmane.lisp.guile.user Subject: problem with srfi-1 when loading from the command line Date: Sat, 16 Apr 2005 19:26:11 -0500 Message-ID: <092c0745a51b953ae763e0934460529f@uiuc.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1113697796 26368 80.91.229.2 (17 Apr 2005 00:29:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 17 Apr 2005 00:29:56 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Apr 17 02:29:54 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DMxfG-0008Jt-D6 for guile-user@m.gmane.org; Sun, 17 Apr 2005 02:29:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DMxj4-0002Bc-41 for guile-user@m.gmane.org; Sat, 16 Apr 2005 20:33:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DMxiY-00021Z-GN for guile-user@gnu.org; Sat, 16 Apr 2005 20:32:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DMxiL-0001vL-0W for guile-user@gnu.org; Sat, 16 Apr 2005 20:32:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DMxiK-0001ss-S8 for guile-user@gnu.org; Sat, 16 Apr 2005 20:32:40 -0400 Original-Received: from [66.163.170.4] (helo=smtp818.mail.sc5.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.34) id 1DMxdJ-0006u3-GH for guile-user@gnu.org; Sat, 16 Apr 2005 20:27:29 -0400 Original-Received: from unknown (HELO ?10.0.1.3?) (rick.taube@sbcglobal.net@69.212.100.130 with plain) by smtp818.mail.sc5.yahoo.com with SMTP; 17 Apr 2005 00:26:13 -0000 Original-To: guile-user@gnu.org X-Mailer: Apple Mail (2.619.2) 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:4384 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:4384 Im having a problem getting the srfi-1 definition of list-index (which is defined in both guile and srfi-1) to stay in effect when I load my system from the command line using the -l option. im not sure what is going wrong. I load my program by loading a file called cm.scm, which in turn loads all my system's sources. The first file that it loads is called guile.scm which has the following use-modules in it: --- (use-modules (srfi srfi-1)) (use-modules (oop goops)) (use-modules (ice-9 rdelim)) (use-modules (ice-9 pretty-print)) ; remove at some point... --- Now, if I start up Guile first and THEN load cm.scm from inside it then everything works, as shown in this trace: THIS WORKS: galen:/Lisp/cm hkt$ guile guile> (version) "1.6.7" guile> list-index # ; <- the old list-index guile> (load "/Lisp/cm/src/cm.scm") ; loading guile.scm ; loading loop.scm ; loading level1.scm ; loading utils.scm ; loading mop.scm ; loading objects.scm ; loading io.scm ; loading scheduler.scm ; loading sco.scm ; loading clm.scm ; loading clm2.scm ; loading midi1.scm ; loading midi2.scm ; loading midi3.scm ; loading data.scm ; loading scales.scm ; loading spectral.scm ; loading patterns.scm guile> list-index # ; <- the new one guile> (quit) NOW, if i load my program from the command line using -l option then it doesnt work, and adding --use-srfi=1 does not help (ive tried with and without the --use-srfi option) THIS DOES NOT WORK: galen:/Lisp/cm hkt$ guile --use-srfi="1" -l "/Lisp/cm/src/cm.scm" ; loading guile.scm ; loading loop.scm ; loading level1.scm ; loading utils.scm ; loading mop.scm ; loading objects.scm ; loading io.scm ; loading scheduler.scm ; loading sco.scm ; loading clm.scm ; loading clm2.scm ; loading midi1.scm ; loading midi2.scm ; loading midi3.scm ; loading data.scm ; loading scales.scm ; loading spectral.scm ; loading patterns.scm guile> list-index # ; <- the old version is still set guile> (quit) As you can see, the list-index function was not redefined by srfi-1, or maybe it was and something that i dont understand is happeing. Any ideas what is going on? All the other definitions that i am using in srfi-1 are in effect. This happens in guile 1.6.7 and 1.7.1 thanks --rick _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user