Re: [PHP] Re: If...Or...Else

2004-07-26 Thread rush
"Skippy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I just wanted to make things clear, because the way you said it above may > lead to misinterpretations, such as believing that || makes all the elements > in a condition evaluate even if not necessary, which is not true. > > So

RE: [PHP] Re: If...Or...Else

2004-07-26 Thread Ford, Mike [LSS]
On 25 July 2004 21:16, Skippy wrote: > Any idea why the need to have two logical operators with the > same meaning BUT > different precedences? I dig the need to put in OR as an > alias, but why > confuse people with the precedence issue? One would tend to > think || and OR > are perfectly inter

Re: [PHP] Re: If...Or...Else

2004-07-26 Thread Thomas Goyne
On Mon, 26 Jul 2004 11:11:21 +0300, Skippy <[EMAIL PROTECTED]> wrote: Quoting Thomas Goyne <[EMAIL PROTECTED]>: On Sun, 25 Jul 2004 23:15:41 +0300, Skippy <[EMAIL PROTECTED]> wrote: > Any idea why the need to have two logical operators with the same > meaning BUT > different precedences? I dig the

Re: [PHP] Re: If...Or...Else

2004-07-25 Thread Skippy
On Sun, 25 Jul 2004 15:42:42 +0200 "rush" <[EMAIL PROTECTED]> wrote: > "Jason Davidson" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > ah right.. :) > > Jason > > OR has a very low priority , and right argument is not evaluated if left > one is true. Same thing happens with ||,

Re: [PHP] Re: If...Or...Else

2004-07-25 Thread rush
"Jason Davidson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > ah right.. :) > Jason OR has a very low priority , and right argument is not evaluated if left one is true. In other words OR is here so that you could in pre exception handling days easily write something like this: m

Re: [PHP] Re: If...Or...Else

2004-07-24 Thread Jason Davidson
ah right.. :) Jason On Sat, 24 Jul 2004 19:50:17 +, Curt Zirzow <[EMAIL PROTECTED]> wrote: > * Thus wrote Jason Davidson: > > OR is also bitwise is it not? > > No, | is bitwise > > Curt > -- > First, let me assure you that this is not one of those shady pyramid schemes > you've been hearing

Re: [PHP] Re: If...Or...Else

2004-07-24 Thread Curt Zirzow
* Thus wrote Jason Davidson: > OR is also bitwise is it not? No, | is bitwise Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] Re: If...Or...Else

2004-07-24 Thread Jason Davidson
OR is also bitwise is it not? Jason On Sat, 24 Jul 2004 21:23:13 +0400, Stan F <[EMAIL PROTECTED]> wrote: > Operations OR and || have different execution priorities. I'd prefer "||" as > it's "more important" so not so many parentheses needed to ensure the order > of interpretation is exactly wha

Re: [PHP] Re: If...Or...Else

2004-07-24 Thread Stan F
Operations OR and || have different execution priorities. I'd prefer "||" as it's "more important" so not so many parentheses needed to ensure the order of interpretation is exactly what u need. - Original Message - From: "Tularis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday