跳轉到內容

Rebol 程式設計/to

來自華夏公益教科書,開放的書籍,開放的世界
TO type spec 

構造並返回轉換後的新值。

TO 是一個動作值。

  • 型別 -- 資料型別或示例值。 (型別:任何型別)
  • 規範 -- 新值的屬性。 (型別:任何型別)

原始碼

[編輯 | 編輯原始碼]
to: native[
    {Constructs and returns a new value after conversion.} 
    type [any-type!] "The datatype or example value." 
    spec [any-type!] "The attributes of the new value."
]
華夏公益教科書