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

REBOL 3 Functions: ??

??  name

Debug print a word, path, or block of such, followed by its molded value.

Arguments:

name - Word, path, and block to obtain values.

See also:

probe   help   ?   mold   source  

Description

The ?? function prints the variable named, followed by its value. It also returns the value. It is a quite useful for debugging.

a: 10
?? a
a: 10

Like probe, ?? can be inserting into code with minimal effect:

a: 10
b: 20
a + ?? b
b: 20
30

If a block is provided, then each value is printed:

?? [a b]
a: 10  b: 20
Warning: effect on functions

If you use ?? in front of a function, the function value is returned. The function is not evaluated.

>> ?? find "abc" "a"
find: make action! [[
    {Finds a value in a series and returns the series at the start of it.}
    series [series! gob! port! bitset! typeset! object! none!]
    value [any-type!]
    /part "Limits the search to a given length or position"
...


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