From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andreas Rottmann Newsgroups: gmane.lisp.guile.user Subject: Re: Stupid module and pregexp questions Date: Thu, 24 Apr 2003 15:36:06 +0200 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <874r4of261.fsf@alice.rotty.yi.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1051191423 4303 80.91.224.249 (24 Apr 2003 13:37:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 24 Apr 2003 13:37:03 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Apr 24 15:36:56 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 198guF-00016N-00 for ; Thu, 24 Apr 2003 15:36:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 198guc-0004Jg-02 for guile-user@m.gmane.org; Thu, 24 Apr 2003 09:37:18 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 198gtr-00043J-00 for guile-user@gnu.org; Thu, 24 Apr 2003 09:36:31 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 198gtp-000409-00 for guile-user@gnu.org; Thu, 24 Apr 2003 09:36:30 -0400 Original-Received: from octopussy.utanet.at ([213.90.36.45]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 198gtV-0003dx-00 for guile-user@gnu.org; Thu, 24 Apr 2003 09:36:09 -0400 Original-Received: from plenty.utanet.at ([213.90.36.9]) by octopussy.utanet.at with esmtp (Exim 4.12) id 198gtT-0004Wq-00; Thu, 24 Apr 2003 15:36:07 +0200 Original-Received: from dsl-158-127.utaonline.at ([62.218.158.127] helo=rotty-ipv4.yi.org) by plenty.utanet.at with esmtp (Exim 4.12) id 198gtS-0000l0-00; Thu, 24 Apr 2003 15:36:06 +0200 Original-Received: from alice.rhinosaur.lan ([192.168.1.3] ident=mail) by rotty-ipv4.yi.org with esmtp (Exim 3.36 #1 (Debian)) id 198gtT-0000gy-00; Thu, 24 Apr 2003 15:36:07 +0200 Original-Received: from andy by alice.rhinosaur.lan with local (Exim 3.36 #1 (Debian)) id 198gtT-0000yP-00; Thu, 24 Apr 2003 15:36:07 +0200 Original-To: MJ Ray In-Reply-To: (MJ Ray's message of "Thu, 24 Apr 2003 02:15:33 -1100") User-Agent: Gnus/5.090018 (Oort Gnus v0.18) Emacs/21.2 (gnu/linux) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: General Guile related discussions List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:1823 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:1823 MJ Ray writes: > On 2003-04-24 13:52:18 +0100 Andreas Rottmann > wrote: > >>> Can (use-modules ...) take a file from the current directory? >> IIRC, yes, if %load-path is set accordingly. > > Please can you give me an example? I can only make it take from > subdirectories. > I just tried it out: simple-math.scm: ----------------------- (define-module (simple-math)) (define gcd (lambda (a b) (if (= a b) a (if (> a b) (gcd (- a b) b) (gcd a (- b a)))))) ------------------- ~% ls *.scm simple-math.scm ~% guile guile> %load-path ("/home/andy/share/guile/site" "/usr/local/share/guile/site" "/usr/local/share/guile/1.7" "/usr/local/share/guile" ".") guile> (gcd 21 6) 3 The same worked also with guile 1.6. Note the trailing "." in %load-path. Andy -- Andreas Rottmann | Rotty@ICQ | 118634484@ICQ | a.rottmann@gmx.at http://www.8ung.at/rotty | GnuPG Key: http://www.8ung.at/rotty/gpg.asc Fingerprint | DFB4 4EB4 78A4 5EEE 6219 F228 F92F CFC5 01FD 5B62 Packages should build-depend on what they should build-depend. _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user