[REBOL] Re: Source code modules.
From: mauro:fontana:speedautomazione:it at: 31-Mar-2004 16:50
On Wed, 31 Mar 2004 10:47:41 -0300 (BRT), Bruno G. Albuquerque
> So, I am working on one project where I will need a way to create
> "modules" of Rebol code that will be loaded by a main script. How would
> 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
> 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.
> Any ideas?
Why not a standard API for all the modules?