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: Fri, 25 Apr 2003 00:55:51 +0200 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <87k7djec94.fsf@alice.rotty.yi.org> References: <874r4of261.fsf@alice.rotty.yi.org> <87ptnbrfx9.fsf@zagadka.ping.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1051225097 31720 80.91.224.249 (24 Apr 2003 22:58:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 24 Apr 2003 22:58:17 +0000 (UTC) Cc: MJ Ray Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Apr 25 00:58:13 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 198pfR-0008Eq-00 for ; Fri, 25 Apr 2003 00:58:13 +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 198pfu-0005HB-00 for guile-user@m.gmane.org; Thu, 24 Apr 2003 18:58:42 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 198pfV-00057I-00 for guile-user@gnu.org; Thu, 24 Apr 2003 18:58:17 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 198pfS-0004zE-00 for guile-user@gnu.org; Thu, 24 Apr 2003 18:58:15 -0400 Original-Received: from octopussy.utanet.at ([213.90.36.45]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 198pfR-0004vk-00 for guile-user@gnu.org; Thu, 24 Apr 2003 18:58:14 -0400 Original-Received: from pam.utanet.at ([213.90.36.6]) by octopussy.utanet.at with esmtp (Exim 4.12) id 198pfQ-0006mP-00; Fri, 25 Apr 2003 00:58:12 +0200 Original-Received: from dsl-239-40.utaonline.at ([212.152.239.40] helo=rotty-ipv4.yi.org) by pam.utanet.at with esmtp (Exim 4.12) id 198pfP-0006mR-00; Fri, 25 Apr 2003 00:58:12 +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 198pd9-0001YO-00; Fri, 25 Apr 2003 00:55:51 +0200 Original-Received: from andy by alice.rhinosaur.lan with local (Exim 3.36 #1 (Debian)) id 198pd9-0004IL-00; Fri, 25 Apr 2003 00:55:51 +0200 Original-To: Marius Vollmer In-Reply-To: <87ptnbrfx9.fsf@zagadka.ping.de> (Marius Vollmer's message of "24 Apr 2003 18:58:10 +0200") User-Agent: Gnus/5.090018 (Oort Gnus v0.18) Emacs/21.2 (gnu/linux) Original-cc: guile-user@gnu.org 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:1826 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:1826 Marius Vollmer writes: > Andreas Rottmann writes: > >> ~% 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 > > Heh, there is a builtin 'gcd', of course. You don't load the module > as it seems. > Only forgot to paste that, and :export. Should have chosen another function (name), it seems ;-) For completeness: ,---- | (define-module (simple-math) | :export (some-stupid-func)) | | (define (some-stupid-func a) (* a a a a)) `---- Then load with `(use-modules (simple-math))' Regards, 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 Python is executable pseudocode, Perl is executable line-noise. _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user