Rebol 程式設計/load
外觀
LOAD source /header /next /library /markup /all
載入檔案、URL 或字串。將單詞繫結到全域性上下文。
LOAD 是一個原生值。
- source -- (型別:檔案 url 字串 任何-塊 二進位制)
- /header -- 包括 REBOL 頭部物件(如果存在)。
- /next -- 僅載入下一個值。返回帶有值和新位置的塊。
- /library -- 強制檔案成為動態庫。(命令版本)
- /markup -- 將 HTML 和 XML 轉換為標籤和字串的塊。
- /all -- 載入所有值。不評估 REBOL 頭部。
load: native[
{Loads a file, URL, or string. Binds words to global context.}
source [file! url! string! any-block! binary!]
/header "Includes REBOL header object if present."
/next {Load the next value only. Return block with value and new position.}
/library {Force file to be a dynamic library. (Command version)}
/markup {Convert HTML and XML to a block of tags and strings.}
/all "Load all values. Does not evaluate REBOL header."
]