[REBOL] Source code modules.
From: bga:bug-br at: 31-Mar-2004 10:47
So, I am working on one project where I will need a way to create
of Rebol code that will be loaded by a main script. How would I
go about loading those modules from disk in a way that would be easy to
access that code in the main script? This is what would happen:
1 - Scan a dir for modules. I will probably be looking for files with
specific extensions here.
2 - Load a specific module. Here is the trick part. What I was thinking is
that each module would have a function that I would call inside it to do
whatever is needed. As I intend to download all modules at once when the
main script starts, the functions on each module would have to have
different names. How to keep track of those names? Also, how to load the
modules? "do %modulefile" is the best way?
3 - Access module functions.