This is the mail archive of the guile@sources.redhat.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Q: how to organize a module?


Hello list,

I'd like to know is there a correct way to divide a module in several
files.

I tried something like:
in a.scm:
(define-module (a))
(load "b.scm")

in b.scm:
(define-public test-val 0)

then
guile> (use-modules (a))
guile> test-val
0
guile>

So it works, but I don't know if it's a know/intended feature that will
persist.

-- 
Ivan Toshkov


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]