REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: native?

native?  value

Returns TRUE if it is this type.

Arguments:

value [any-type!]

See also:

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


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin