realbasic-nug
[Top] [All Lists]

Re: Is this a bug?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Is this a bug?
From: Terry Ford <tmford at shaw dot ca>
Date: Fri, 31 Aug 2007 21:50:39 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <C2FE64AD dot 2113B%mckernonjunk at earthlink dot net>
On Aug 31, 2007, at 9:37 PM, John McKernon wrote:

>> case 301 or 302 or 303 or 307
>
> Maybe this syntax has the compiler or'ing those four values  
> together and if
> they produce a logical true then execute the following statement,  
> instead of
> looking for httpstatus matching one of those four values?
>
> Just a guess...

If you add "is" and change the line to: "case is 301 or 302 or 303 or  
307", which is what works for the current simple Boolean comparisons  
now, it will object to it. Even adding a comma will do the same  
thing. The fact than it misses the "or" error in a simple "case"  
statement is a bug IMHO.

Terry

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>