[REBOL] Evaluation/functions Re:(2)

> From: [EMAIL PROTECTED]
> Date: Wed, 29 Dec 1999 15:32:58 -0600
> X-SELMA: [REBOL] 65680

>    >> func [] [print "Executed"]

>     Unevaluated REBOL functions (such as the result of evaluating
>     'func, or the result of 'get on a word which is bound to a
>     function) have no printable representation.

You didn't try to 'print

>> print func [] [ print "Evaluated" ]
?function?
>> print mold func [] [ print "Evaluated" ]
func [][print "Evaluated"]

The point is that the console, 'form (used by 'print) and 'mold make a
different translation of a value.
The basic word to obtain an alfanumeric representation of a REBOl value is 'mold.

>> ? mold
Converts a value to a REBOL-readable string.
Arguments:
    value -- The value to mold

Ciao,
Daniele.

Reply via email to