From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jon Wilson" Newsgroups: gmane.lisp.guile.user Subject: idea: create module Date: Mon, 24 Apr 2006 18:31:55 -0700 Message-ID: <1145928715.8164.259839955@webmail.messagingengine.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1145928778 25239 80.91.229.2 (25 Apr 2006 01:32:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Apr 2006 01:32:58 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Apr 25 03:32:52 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 1FYCQ2-0006Fg-2J for guile-user@m.gmane.org; Tue, 25 Apr 2006 03:32:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYCQ1-0002ze-I6 for guile-user@m.gmane.org; Mon, 24 Apr 2006 21:32:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FYCPx-0002zZ-IY for guile-user@gnu.org; Mon, 24 Apr 2006 21:32:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FYCPv-0002zF-Vu for guile-user@gnu.org; Mon, 24 Apr 2006 21:32:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYCPv-0002zC-Oa for guile-user@gnu.org; Mon, 24 Apr 2006 21:32:39 -0400 Original-Received: from [66.111.4.25] (helo=out1.smtp.messagingengine.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FYCSH-0000fw-QP for guile-user@gnu.org; Mon, 24 Apr 2006 21:35:05 -0400 Original-Received: from frontend2.internal (frontend2.internal [10.202.2.151]) by frontend1.messagingengine.com (Postfix) with ESMTP id 81700D4CA68 for ; Mon, 24 Apr 2006 21:32:37 -0400 (EDT) Original-Received: from web2.messagingengine.com ([10.202.2.211]) by frontend2.internal (MEProxy); Mon, 24 Apr 2006 21:31:56 -0400 Original-Received: by web2.messagingengine.com (Postfix, from userid 99) id EFAE469E4; Mon, 24 Apr 2006 21:31:55 -0400 (EDT) X-Sasl-Enc: eTc13qXit0EKS/n6tcnudfGy8QvVC8ucqfOVnCdDnDY5 1145928715 Original-To: guile-user@gnu.org Content-Disposition: inline X-Mailer: MIME::Lite 5022 (F2.72; T1.15; A1.62; B3.04; Q3.03) 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:5252 Archived-At: Hi all, I just had a random idea, and thought I'd run it by y'all. What if you could compose modules from the REPL, and then write them to a file? Something like: (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") With my luck, something like this probably already exists and I'm just too stupid to have found it, but I think it would make module writing easier. Perhaps also you could load an existing module, and then make modifications to it, and then write it to a file as well. Thoughts? Regards, Jon -- Jon Wilson j85wilson@fastmail.fm -- http://www.fastmail.fm - Email service worth paying for. Try it for free _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user