From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.lisp.guile.user Subject: Re: idea: create module Date: Tue, 25 Apr 2006 03:09:53 -0400 Message-ID: References: <1145928715.8164.259839955@webmail.messagingengine.com> Reply-To: ttn@glug.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1145949007 18286 80.91.229.2 (25 Apr 2006 07:10:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Apr 2006 07:10:07 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Apr 25 09:10:03 2006 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FYHgO-0005xG-Kj for guile-user@m.gmane.org; Tue, 25 Apr 2006 09:10:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYHgO-0003hR-2U for guile-user@m.gmane.org; Tue, 25 Apr 2006 03:10:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FYHgK-0003hL-6L for guile-user@gnu.org; Tue, 25 Apr 2006 03:09:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FYHgJ-0003h9-LL for guile-user@gnu.org; Tue, 25 Apr 2006 03:09:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYHgJ-0003h6-GS for guile-user@gnu.org; Tue, 25 Apr 2006 03:09:55 -0400 Original-Received: from [67.59.132.6] (helo=mail.agora-net.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FYHii-0002yZ-Qv for guile-user@gnu.org; Tue, 25 Apr 2006 03:12:24 -0400 Original-Received: from ttn by mail.agora-net.com with local (Exim 4.50) id 1FYHgH-0000aD-Vu; Tue, 25 Apr 2006 03:09:53 -0400 Original-To: j85wilson@fastmail.fm In-reply-to: <1145928715.8164.259839955@webmail.messagingengine.com> (j85wilson@fastmail.fm) 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:5255 Archived-At: From: "Jon Wilson" Date: Mon, 24 Apr 2006 18:31:55 -0700 (define mod (make-module (my modulename))) (define f1 (lambda () (display "f1"))) (define value 7) (add-export mod f1 value) (write-module-file "my_modulename.scm") you can use `define-module' in a repl. run the repl in an emacs buffer and it's a SMOP to filter out prompts and output on `C-x C-w' (to start, see `write-contents-hooks' and friends). thi _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user