[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: module questions
On Dec 28, Michael Vanier wrote:
>
> [...] I just want to split the functions into different files for
> conceptual clarity. [...] Also, it occurred to me after posting
> that a much simpler way to achieve my goals is simply to use "load"
> to bring together files with mutual dependencies into a third file,
> which could itself be a module.
But this is not free enough -- if you use `include' you get everything
you want like:
--- x.ss -------
(module foo mzscheme
(require (lib "include.ss"))
(include "a.ss")
(define b 2)
(provide b))
--- a.ss -------
(define a 1)
(provide a)
----------------
BTW, is it a known issue that when requiring a library encounters an
error then you're left with some intermediate state where some of the
bindings are visible (and mutable) and some not?
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://www.barzilay.org/ Maze is Life!