跳轉到內容

Rebol 程式設計/construct

來自華夏公益教科書
CONSTRUCT block /with object 

建立一個物件,但不評估其規範。

CONSTRUCT 是一個原生值。

  • -- 物件規範塊(型別:塊)
  • /with -- 提供預設基礎物件
    • 物件 -- (型別:物件)

原始碼

[編輯 | 編輯原始碼]
construct: native[
    {Creates an object, but without evaluating its specification.} 
    block [block!] "Object specification block" 
    /with "Provide a default base object" object [object!]
]

華夏公益教科書