Not good for the rebolution
[1/2] from: rebol665:ifrance at: 20-Sep-2002 11:03
Hi Andrew,
Andrew wrote :
>> if test/2 = 'false [ print "ok" ]
Thanks Andrew but I am not looking for a workaround and furthermore even a
newbie can tell that 'false is not a logic (so this syntax will not come
easily). See the following :
>> test: [false false false]
== [false false false]
>> if not test/2 [print "item 2 is false"]
== none
I am not telling that Rebol is wrong. I am telling that there are some
gotchas, like this one, for which the documentation is not very helpfull.
And in my opinion, the List could find a way to change that.
Patrick
[2/2] from: carl::cybercraft::co::nz at: 20-Sep-2002 22:24
On 20-Sep-02, pat665 wrote:
> Hi Andrew,
> Andrew wrote :
<<quoted lines omitted: 9>>
> some gotchas, like this one, for which the documentation is not very
> helpfull.
Well, it's a minor gotcha...
>> type? test/2
== word!
Solution, though obviously not one a newbie would guess...
>> test: reduce [false false false]
== [false false false]
>> if not test/2 [print "item 2 is false"]
item 2 is false
>> if test/2 = false [print "item 2 is false"]
item 2 is false
> And in my opinion, the List could find a way to change
> that.
<<quoted lines omitted: 47>>
>> Andrew Martin
>> ICQ: 26227169 http://valley.150m.com/
--
Carl Read
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted