>- see footer for list info -<
Ok well we have answered his question, so I'll stop confusing him now :-) 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Charlie Arehart
Sent: 07 August 2006 21:57
To: 'Coldfusion Development'
Subject: RE: [CF-Dev] CFSwitch... Aren't all cases evaluated?

>- see footer for list info -<
Right, and I'd pointed to that blog post already. When you get to my note
(perhaps delivered later to you but I saw it on the last 30 minutes ago),
you'll see that I point out that the original issue is not necessarily about
strings at all. We may be confusing matters by discussing this, which was
about order of cases. 

But it seems you're asserting that the string bug DOES have an affect on
order of cases. I think that's mistaken, too. It points out that the extra
(unexpected and buggy effort) is in the evaluation of the EXPRESSION in the
CFSWITCH. Here's the relevant text:

        "Under the covers, ColdFusion attempts to convert the switch
expression to a floating point number, using Java's parseDouble method. If
the conversion works, then ColdFusion uses the expression as a number. If
the conversion fails, however, then an exception is thrown, and an exception
stack is generated, but then ColdFusion handles the exception and uses the
expression as a string. The problem is, that exception throwing and stack
generation gets very, very expensive under load."

So, again, I think the order of cases (JGG's original question) is still on
the table. I've proposed my understanding. All this discussion of strings
aside, I am awaiting a reply from my engineer contacts at Adobe.

/charlie
http://www.carehart.org/blog/


_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to