Rebol Programming/??

From Wikibooks, open books for an open world
Jump to navigation Jump to search

USAGE:

[edit | edit source]
?? 'name 

DESCRIPTION:

[edit | edit source]

Prints a variable name followed by its molded value. (for debugging)

?? is a function value.

ARGUMENTS

[edit | edit source]
  • name -- (Type: any)

SOURCE CODE

[edit | edit source]
??: func [
    {Prints a variable name followed by its molded value. (for debugging)} 
    'name
][
    print either word? :name [head insert tail form name reduce [": " mold name: get name]] [mold :name] 
    :name
]