problems with recursion in cfmx

2003-10-08 Thread Jason Wagstaff
I don't know if this is a possible bug (or maybe i am doing something wrong), but when using recursion with a query in the function scope it is overwritten on the next call of the function.i did find a workaround, but want to know is what is intended. I have this function which orders sibilings

RE: problems with recursion in cfmx

2003-10-08 Thread Adrian Lynch
In your query put cfset var getStandardRet = / That may help. Ade -Original Message- From: Jason Wagstaff [mailto:[EMAIL PROTECTED] Sent: 08 October 2003 15:04 To: CF-Talk Subject: problems with recursion in cfmx I don't know if this is a possible bug (or maybe i am doing

RE: problems with recursion in cfmx

2003-10-08 Thread Adrian Lynch
Ignore that. I meant to say, in the recursive functions, locally scope your queries. cfset var yourQuery = / should do it. Ade -Original Message- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: 08 October 2003 15:08 To: CF-Talk Subject: RE: problems with recursion in cfmx

RE: problems with recursion in cfmx

2003-10-08 Thread Jason Wagstaff
:[EMAIL PROTECTED] Sent: 08 October 2003 15:08 To: CF-Talk Subject: RE: problems with recursion in cfmx In your query put cfset var getStandardRet = / That may help. Ade -Original Message- From: Jason Wagstaff [mailto:[EMAIL PROTECTED] Sent: 08 October 2003 15:04

RE: problems with recursion in cfmx

2003-10-08 Thread Adrian Lynch
=#VARIABLES# / Also, does anyone know a similar way to see all var scoped variables? Dumping var doesn't work. Ade -Original Message- From: Jason Wagstaff [mailto:[EMAIL PROTECTED] Sent: 08 October 2003 15:54 To: CF-Talk Subject: RE: problems with recursion in cfmx --- Adrian Lynch [EMAIL

RE: problems with recursion in cfmx

2003-10-08 Thread Tim Blair
but is this what is supppose to happen/intended? Yes. Any unscoped variable that is created in a function body is automatically placed in the variables scope, which is global and not localised to the function, hence future iterations of the same function can read/overwrite that value.To

RE: problems with recursion in cfmx

2003-10-08 Thread Raymond Camden
Also, does anyone know a similar way to see all var scoped variables? Dumping var doesn't work. You can't - however - if you need to, simply do: cfset var local = structNew() and place all your crap in local, then you can inspect it at will. [Todays Threads] [This Message]

RE: problems with recursion in cfmx

2003-10-08 Thread Jason Wagstaff
--- Tim Blair [EMAIL PROTECTED] wrote: but is this what is supppose to happen/intended? Yes. Any unscoped variable that is created in a function body is automatically placed in the variables scope, which is global and not localised to the function, hence future iterations of the same