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