REBOL Document

Native? - Function Summary


Summary:

Returns TRUE for native values.

Usage:

native? value

Arguments:

value - The value argument. (must be: any-type)

Description:

Returns FALSE for all other values. When passing a function to NATIVE? to be checked, it must be denoted with ":". This is because the ":word" notation passes a word's reference, not the word's value. NATIVE? can only determine whether or not a function is a native if it is passed the function's reference.


    probe native? :native?   ; it's actually an ACTION!
    false


    probe native? "Vichy"
    false


    probe native? :if
    true

Related:

type? - Returns a value's datatype.


<Back | Index | Next>

Copyright 2004 REBOL Technologies