REBOL Programming/any-object?

From Wikibooks, open books for an open world
< REBOL Programming
Jump to: navigation, search

USAGE:[edit]

ANY-OBJECT? value 

DESCRIPTION:[edit]

Return TRUE if value is any type of object.

ANY-OBJECT? is a function value.

ARGUMENTS[edit]

  • value -- (Type: any-type)

SOURCE CODE[edit]

any-object?: func [
    "Return TRUE if value is any type of object." 
    value [any-type!]
][
    found? find any-object! type? get/any 'value
]