On 20-Sep-02, pat665 wrote:

> 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.

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.

> Patrick

> ----- Original Message -----
> Sent: Friday, September 20, 2002 10:36 AM


>>          id
>> <20020920082300.ULMT21398.mta2-rme.xtra.co.nz@Garfield>
>>          for <[EMAIL PROTECTED]>; Fri, 20 Sep 2002 20:23:00
>> +1200 Message-ID: <000d01c2607e$ef00ad60$926036d2@Garfield> From:
>> "Andrew Martin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>
>> References: <002501c2606f$d8f66d20$3801a8c0@postepph> Subject:
>> [REBOL] Re: change/at Date: Fri, 20 Sep 2002 20:23:00 +1200
>> MIME-Version: 1.0
>> Content-Type: text/plain; charset="Windows-1252"
>> Content-Transfer-Encoding: 7bit X-Priority: 3
>> X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express
>> 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE
>> V6.00.2800.1106 X-archive-position: 23251 X-listar-version: Listar
>> v0.129a Sender: [EMAIL PROTECTED] Errors-to:
>> [EMAIL PROTECTED] X-original-sender: [EMAIL PROTECTED]
>> Precedence: bulk
>> Reply-to: [EMAIL PROTECTED] X-list: rebol
>> 
>>> Imagine the effect of such a test on a newbie:
>>> 
>>>>> test: [false false false]
>>> == [false false false]
>>>>> if test/2 = false [ print "ok" ]
>>> == none
>>>>> test/2
>>> == false
>>> 
>>> It's not good for the Rebolution !
>> 
>> 
>>>> test: [false false false]
>> == [false false false]
>>>> if test/2 = 'false [ print "ok" ]
>> ok
>>>> test/2
>> == false
>> 
>>>> test: [foo foo foo]
>> == [foo foo foo]
>>>> if test/2 = 'foo [ print "ok" ]
>> ok
>>>> test/2
>> == foo
>> 
>> Andrew Martin
>> ICQ: 26227169 http://valley.150m.com/

-- 
Carl Read

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to