unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* idea: create module
@ 2006-04-25  1:31 Jon Wilson
  2006-04-25  7:09 ` Thien-Thi Nguyen
  2006-04-25 23:05 ` Neil Jerram
  0 siblings, 2 replies; 6+ messages in thread
From: Jon Wilson @ 2006-04-25  1:31 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-05-02  4:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-25  1:31 idea: create module Jon Wilson
2006-04-25  7:09 ` Thien-Thi Nguyen
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

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).