If you agree that 20 is true, then you implicitly agree that 20 is a boolean
value.  With that, how can you argue that 20 is not a valid result from a
boolean _expression_?

barneyb

> -----Original Message-----
> From: Bryan F. Hogan [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 20, 2004 4:11 PM
> To: CF-Talk
> Subject: Re: Is it a bug or not a bug?
>
> Something got lost here, I agree 20 is true, that's why I
> think #(true
> and 20)# should return true and not the numeric value of 20.
>
> Barney Boisvert wrote:
>
> > In a loosely typed language (which CF is), 20 IS true.  There is NO
> > DIFFERENCE.
> >
> > The implementation (which happens in java, a strongly typed
> langauge) has to
> > deal with the actual type of variables, by CF has no
> concept of boolean vs.
> > integer.  This is a trait of loosely typed languages.
> >
> > Personally, I consider it a helpful feature, though it can
> certianly be
> > viewed as 'buggy', even though it's an intentional design
> characteristic of
> > the language.  It definitely has weird behaviour when
> you're letting the
> > language compiler/runtime do a bunch of implicit casting
> for you.  However,
> > as long as your careful and understand what's happening,
> it's a great
> > benefit.
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to