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

where is the "=="?

 [1/3] from: rishi:picostar at: 13-Sep-2000 0:45


In the rebol command line, some expressions display the result following "==" sign while some don't. example:
>> 5 + 5
== 10
>> print 5 + 5
10 In general, when the you get "==" sign before the result? Rishi

 [2/3] from: brett:codeconscious at: 13-Sep-2000 20:35


== indicates the final result of the evaluation performed see this....
>> res: print 5 + 5
10 ** Script Error: res needs a value. ** Where: res: print 5 + 5 print does not return a value (instead it has a "side effect" in respect of the evaluation, which is to output to the standard output) compare this with probe....
>> res: probe 5 + 5
10 == 10 probe returns the value it was given and has the effect of outputting to standard output try "source probe" at the console and see how my description fits with the definition of probe. Brett. ----- Original Message ----- From: <[rishi--picostar--com]> To: <[list--rebol--com]> Sent: Wednesday, September 13, 2000 5:45 PM Subject: [REBOL] where is the "=="?
> In the rebol command line, some expressions display the result following
== sign while some don't.

 [3/3] from: al::bri::xtra::co::nz at: 13-Sep-2000 21:38


> In the rebol command line, some expressions display the result following
== sign while some don't.
> example: > > >> 5 + 5 > == 10 > > >> print 5 + 5 > 10 > > In general, when do you get "==" sign before the result?
Whenever the result of the rebol expression is not 'unset!. Try: type? print 5 + 5 and you'll see that the result of 'print is 'unset!. Andrew Martin ICQ: 26227169 http://members.ncbi.com/AndrewMartin/ http://members.xoom.com/AndrewMartin/