error, my statement is correct.
#true and "yes" and 1#
To evaluate this _expression_, CF says:
- is true boolean? Yes.
- is true a true value? Yes.
- can we stop evaluating? No.
- is "yes" boolean? No.
- what is the boolean equivalent of "yes"? true
- is true a true value? Yes.
- can we stop evaluating? No.
- is 1 boolean? No.
- what is the boolean equivalent of 1? true
- is true a true value? Yes.
- can we stop evaluating? Yes.
- return last processed value: 1
CF does NOT convert the "1" to "true" before evaluating. It does that as an
extra internal step in the evaluation of the _expression_.
Cheers,
barneyb
> -----Original Message-----
> From: Claude Schneegans [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 20, 2004 2:40 PM
> To: CF-Talk
> Subject: Re: Is it a bug or not a bug?
>
> >>The cast is implicit, so it only happens for the evaluation.
>
> Where does this rule come from?
> This could be true for a cast, but it is not even a cast in
> the occurrence: it is a forced conversion.
> Don't forget: a cast is performed during compile, a
> conversion during execution.
> Here the problem is during the execution of the _expression_.
>
> --
> _______________________________________
> See some cool custom tags here:
> http://www.contentbox.com/claude/customtags/tagstore.cfm
> Please send any spam to this address: [EMAIL PROTECTED]
> Thanks.
>
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

