<div>The addressed module system is Black Hole, that you have a brief introduction and download URL to on <span class="Apple-style-span" style="border-collapse: collapse; "><a href="http://mwaza.dyndns.org/apps/files/bh-tutorial.html" target="_blank" style="color: rgb(42, 93, 176); ">http://mwaza.dyndns.org/apps/files/bh-tutorial.<span class="il" style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(255, 255, 204); background-position: initial initial; ">html </span></a></span>. <br>
</div><div><br></div><div>Email me any feedback and questions you have on the introduction. More documentation is underway, and will be published in approx a month.</div><div><br></div><div>The module system does macro export automatically, and dependency loading and compilation. The documentation will describe this clearly.<br>
<div><br></div><div>Mikael<br><br><div class="gmail_quote">2009/4/30 Valeriya Pudova <span dir="ltr"><<a href="mailto:val1969@neotech.lv">val1969@neotech.lv</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello good people,<br>
<br>
| --- "A Tour of Scheme in Gambit.pdf"<br>
| In Gambit, a good way to subdivide code is by using the X module system.<br>
| The layout is pretty straight-forward:<br>
| create a .scm-file . Start it with (module name) where name is the name.<br>
| Then, declare what other modules to use with the (use) procedure.<br>
For instance:<br>
|   (use lib/srfi1 lib/http-client)<br>
<br>
Is it true?<br>
<br>
I see, the Gambit has two methods: 'include' and 'load'<br>
First method 'include' lets subdivide app into files. It can be helpful<br>
but it is pure method (similar to include of C language).<br>
Programmer should avoid recursively included files, etc.<br>
For me 'include' is not good way how to code app.<br>
<br>
The method 'load' lets subdivide app into the modules. This should<br>
be better that 'include' (for me). But it has limitation. The macro<br>
definition usable only at one file.<br>
<br>
|--- manual:<br>
| To have access to the macro definitions contained in<br>
| a file, that file must be included using the include special form.<br>
<br>
Maybe that is why the statistic of using 'include' is higher that for<br>
'load' method. Also i seen at the source files list of the<br>
"Space Invaders classical arcade game" that programmer split<br>
modules into 2 files one is for code and second for macros, and last<br>
one must be included when first can be loaded.<br>
<br>
Does not look like pretty. Fix me if I am wrong please.<br>
<br>
What is correct template how to subdivide app into modules?<br>
Maybe there is lightweight module system library exists?<br>
_______________________________________________<br>
Gambit-list mailing list<br>
<a href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br>
<a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>
</blockquote></div><br></div></div>