Skip to content
angerangel edited this page Mar 19, 2013 · 1 revision

USAGE

   MODULE spec body /mixin words

DESCRIPTION

Creates a new module.

MODULE is a function value.

ARGUMENTS

  • spec -- The header block of the module (modified) (block!)
  • body -- The body block of the module (modified) (block!)

REFINEMENTS

  • /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
] ]
Clone this wiki locally