[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
idea: create module
From: |
Jon Wilson |
Subject: |
idea: create module |
Date: |
Mon, 24 Apr 2006 18:31:55 -0700 |
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
address@hidden
--
http://www.fastmail.fm - Email service worth paying for. Try it for free
- idea: create module,
Jon Wilson <=