[REBOL] ?
From: foodsafety:ains:au at: 11-Jan-2001 0:46
I was wondering how '? (or 'help) can take a word as an input without the
word or it's function being evaluated first. Rebol evaluates from
right-to-left as in:
>> return-string: does [ print "ABC" return " A string! "]
>> print trim return-string
ABC
A string!
In that example 'return-string is evaluated first (I think), then 'trim,
then 'print. So what about:
>> ? return-string
USAGE:
RETURN-STRING
DESCRIPTION:
(undocumented)
If this followed the same rule as before then the string "ABC" should have
been printed before the help text. Since '? isn't a native function I
can't see how it can break the standard convention. I thought
>> source ?
... would provide an answer but the output just confused the hell outta
me. I have tried to write functions like this in the past but never had
any success. Clearly my concecpt of the standard convention must be wrong.
Could somebody clarify it for me in plain english please.
SpliFF