[REBOL] modules
From: carl::rebol::com at: 11-Apr-2001 6:17
On modules, here's a handy way to accomplish a lot of what is desired.
This is how we modularize our code within REBOL products:
mod-mycode: context [
var1: 1234
var2: var3: var4: none
func1: does ....
func2: does ....
set 'external-func1 does ...
set 'external-func2 does ...
]
So, using a one-of-a-kind object allows you to make your code modular...
at least to the degree that you don't have to worry about stepping on
globals, etc.
REBOL modules will be added for 3.0. But first, we must sell some
products to pay the rent and eat from time to time. ;)
-Carl