needs for evaluation. Not like a function call that returns boolean. It
one of the little bits of weirdness that are present in loosely-typed
languages.
Cheers,
barneyb
> -----Original Message-----
> From: Scott Brady [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 11, 2004 3:45 PM
> To: CF-Talk
> Subject: RE: Boolean Inconsistency
>
> Original Message:
> > From: "Barney Boisvert" <[EMAIL PROTECTED]>
> > Actually, I think what's happening is CF is returning the
> value of the last
> > evaluated portion of the _expression_. In the first, both
> need evaluation, so
> > we return 3, the second one. If the second, only the first
> needs evaluation
> > (becase we know the _expression_ can't be true if either part
> is false), so
> > false is returned.
> >
> > That's just a guess though.
>
> Looks like that was a good guess. I tried swapping it to be
> #(3 and True)# and it does display true.
>
> So, that explains what it does. It sure doesn't explain why.
> That just seems retarded. It seems like it should return the
> boolean result, and not "whatever was last evaluated".
>
> Thanks!
>
> Scott
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

