Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Help me, Obi Reb Kenobi, you're my only hope!

From: jason:cunliffe:verizon at: 28-Aug-2002 2:12

hmmm.. I also be glad if someone can explain this issue well
>> Fred: Try ["hello"]
== "hello"
>> fred
== "hello"
>> Fred: Try [print "hello"]
hello ** Script Error: Fred needs a value ** Near: Fred: Try [print "hello"]
>> >> ? try
USAGE: TRY block DESCRIPTION: Tries to DO a block and returns its value or an error. TRY is a native value. ARGUMENTS: block -- (Type: block)
>> do [print "hello"]
hello
>> fred: do [print "hello"]
hello ** Script Error: fred needs a value ** Near: fred: do [print "hello"]
>> fred: do ["hello"]
== "hello"
>>
Looks like REBOL is being very consistent. So RebGurus, how do you interpret "returns its value" in this context? Which Rebol statements have value? thanks ./Jason