Bind - Function SummarySummary:Binds words to a specified context. Usage:bind words known-word Arguments:words - A block of words or single word. (must be: block any-word) known-word - A reference to the target context. (must be: any-word object port) Refinements:/copy - Deep copies block before binding it. Description:Binds meaning to words in a block. That is, it gives words a context in which they can be interpreted. This allows blocks to be exchanged between different contexts, which permits their words to be understood. For instance a function may want to treat words in a global database as being local to that function. The second argument to BIND is a word from the context in which the block is to be bound. Normally, this is a word from the local context (e.g. one of the function arguments), but it can be a word from any context within the system. BIND will modify the block it is given. To avoid that, use the /COPY refinement. It will create a new block that is returned as the result.
Related:do - Evaluates a block, file, URL, function, word, or any other value.
| ||||
|