On 10/23/05, Adam Cameron <[EMAIL PROTECTED]> wrote:
> Run this code in 7.0 and then 7.0.1.
>
> <cfscript>
>         function f(){
>                 var e   = structNew();
>                 try {
>                         x = 1 / 0;
>                         writeOutput("Will never see this");
>                 } catch (any e){
>                         writeOutput("Well that was never gonna work, was 
> it?");
>                 }
>         }
>
>         f();
> </cfscript>
>
> What I'm seeing in 7.0.1 is an error, thus: "Cannot declare local variable e 
> twice."
>
> What's the story here?

My understanding is that it fixes a bug in CFMX 7 (and earlier CFMX
releases) where the second 'e' would have ended up in 'variables'
scope (and thus not been thread-safe). CFMX 7.0.1 now creates a new
implicitly local variable for catch() so that it is thread-safe.
--
Sean A Corfield -- http://corfield.org/
Got frameworks?

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to