Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Source code modules.

From: greggirwin:mindspring at: 31-Mar-2004 9:30

Hi Bruno, BGA> So, I am working on one project where I will need a way to create BGA> "modules" of Rebol code that will be loaded by a main script. How would I BGA> go about loading those modules from disk in a way that would be easy to BGA> access that code in the main script? If you have the flexibility to experiment, please do give Max's SLIM library concept a try. I'd like to see more people play with it and post some feedback to the list. It's not hard to write a "loader" that brings all your modules in and binds them to a context (I called mine 'lib), and if each module keeps everything in *its* own context, you end up with an nice hierarchical library structure. I can post mine if you want. Other people (e.g. Ladislav) have nice INCLUDE functions, and of course there's PREBOL from RT. -- Gregg