thunk libraries
Matthias Radestock <[email protected]>
| Newsgroups | gmane.comp.java.sisc.devel |
|---|---|
| Organization | LShift Ltd |
| Message-ID | <[email protected]> |
I have added support for thunk libaries, as discussed a few weeks ago.
Here's an example:
(define-library (foobar)
(module foo
(foo-f)
(define (foo-f) '(foo)))
(module bar
(bar-f)
(import foo)
(define (bar-f) (cons 'bar (foo-f)))))
(define-library (bazboo foobar)
(module baz
(baz-f)
(import bar)
(define (baz-f) (cons 'baz (bar-f))))
(module boo
(boo-f)
(import baz)
(define (boo-f) (cons 'boo (baz-f)))))
(import boo)
(boo-f) ;=> '(boo baz bar foo)
(save-thunk-library 'foobar "/tmp/foobar.slt")
(save-thunk-library 'bazboo "/tmp/bazboo.slt")
;;then after a restart
(with-class-path (list "/tmp/")
(lambda () (require-library 'bazboo)))
(import boo)
(boo-f) ;=> '(boo baz bar foo)
Things left to do:
* document this new feature
* convert srfi lib from compiled lib to thunk libs
sisc/libs/srfi/srfi-{n}.slt
* testing
Help appreciated.
Matthias.
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php