forked from rebol/rebol
-
Notifications
You must be signed in to change notification settings - Fork 2
Module
angerangel edited this page Mar 19, 2013
·
1 revision
MODULE spec body /mixin words
Creates a new module.
MODULE is a function value.
- spec -- The header block of the module (modified) (block!)
- body -- The body block of the module (modified) (block!)
-
/mixin -- Mix in words from other modules
- words -- Words collected into an object (object!)
#SOURCE
module: make function! [ [
"Creates a new module."
spec [block!] "The header block of the module (modified)"
body [block!] "The body block of the module (modified)"
/mixin "Mix in words from other modules"
words [object!] "Words collected into an object"
][
make module! unbind/deep reduce pick [ [spec body] [spec body words] ] not mixin
] ]