angerangel edited this page Jan 4, 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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.