unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Thien-Thi Nguyen <ttn@glug.org>
Cc: guile-user@gnu.org
Subject: Re: idea: create module
Date: Tue, 25 Apr 2006 03:09:53 -0400	[thread overview]
Message-ID: <E1FYHgH-0000aD-Vu@mail.agora-net.com> (raw)
In-Reply-To: <1145928715.8164.259839955@webmail.messagingengine.com> (j85wilson@fastmail.fm)

   From: "Jon Wilson" <j85wilson@fastmail.fm>
   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


  reply	other threads:[~2006-04-25  7:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-25  1:31 idea: create module Jon Wilson
2006-04-25  7:09 ` Thien-Thi Nguyen [this message]
2006-04-25 23:05 ` Neil Jerram
2006-04-26 13:51   ` Jon Wilson
2006-04-27  7:42     ` Neil Jerram
2006-05-02  4:08       ` Jon Wilson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1FYHgH-0000aD-Vu@mail.agora-net.com \
    --to=ttn@glug.org \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).