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

[REBOL] Re: RAMBO #3652 unset?

From: apwing:zonnet:nl at: 22-Mar-2005 16:22

Hi Ladislav / Romano, in order to get a grip I played around with your examples, but I don't understand the following: why give the following 2 cases different results? 1 >>unset 'var
>>unset? 'var
== false 2 >>unset? unset 'var == true The only thing I can think of is that unset! is not a datatype of the variable being unset. E.g. after unset 'x x would not have a datatype of unset! (which I thought was true). Instead unset! would just be the returned value of unset itself only. Thanks! Arie P.S. Ladislav the example of function f is very useful! Romano Paolo Tenca wrote: Ladislav Mecir wrote: check the following expressions: do [] print "" prin "" do does [exit] forever [break] get/any 'uninitialized-variable other examples: unset? unset 'a unset? set/any 'a unset 'b unset? do does [return] unset? catch[throw]