> From: Jochem van Dieten [mailto:[EMAIL PROTECTED]] > > Of course, the price of this ease of coding may be horrifying > > performance for both CF and Blue Dragon... but you asked ;D > > I always believed the whole point of a switch statement was that only > the switch side had to be evaluated as an expression and the case sides > were simple values, thereby greatly reducing the amount of processing. > Comments?
I suppose that compiled languages could accept non-simple values (ranges, etc.) and convert them to simple values during compilation. This would allow the compiled language to have the "power" of accepting somewhat complex values while saving on the performance as you suggest. Interpreted languages, obviously, wouldn't be able to do this. So, that may be why CF doesn't accept complex values being interpreted and all. -- Mosh Teitelbaum evoch, LLC Tel: (301) 625-9191 Fax: (301) 933-3651 Email: [EMAIL PROTECTED] WWW: http://www.evoch.com/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

