跳轉到內容

Rebol 程式設計/any-object?

來自華夏公益教科書,開放的書籍,開放的世界
ANY-OBJECT? value 

如果值是任何型別的物件,則返回 TRUE。

ANY-OBJECT? 是一個函式值。

  • value -- (型別: any-type)

原始碼

[編輯 | 編輯原始碼]
any-object?: func [
    "Return TRUE if value is any type of object." 
    value [any-type!]
][
    found? find any-object! type? get/any 'value
]
華夏公益教科書