跳轉到內容

Rebol 程式設計/bind

來自華夏公益教科書,自由的教科書
BIND words known-word /copy 

將單詞繫結到指定的上下文。

BIND 是一個原生值。

  • words -- 一個單詞塊或單個單詞。(型別:塊 任何單詞)
  • known-word -- 對目標上下文的引用。(型別:任何單詞 物件 埠)
  • /copy -- 在繫結前深度複製塊。

原始碼

[編輯 | 編輯原始碼]
bind: native[
    "Binds words to a specified context." 
    words [block! any-word!] "A block of words or single word." 
    known-word [any-word! object! port!] "A reference to the target context." 
    /copy "Deep copies block before binding it."
]

華夏公益教科書