Re: [cfaussie] Varscoping and CF9

2011-10-03 Thread Sean Corfield
On Mon, Oct 3, 2011 at 4:09 PM, Dave dave1...@gmail.com wrote: What are people who are doing this using for var scoping of code? Given that you can declare the var at the point of first use now, it's a lot easier to get it right: var n = arraylen(foo); for ( var i = 1; i = n; ++i ) { ... } for

[cfaussie] Varscoping and CF9

2011-10-03 Thread Dave
I've noticed on a few of the CF Groups, people are posing all cfScript code, eg, all Property, Component and Function tags now written in script. What are people who are doing this using for var scoping of code? Mike's varscoper won't work with this sort of code. Dave -- You received this

Re: [cfaussie] Varscoping and CF9

2011-10-03 Thread MrBuzzy
Saw your post on stack over flow too http://bit.ly/qBVajq :) We've got a different var scoper, it doesn't scan code, instead it works at runtime to count the variables and decide if the variables scope has grown when a cffunction is run. I haven't tried it, but I suspect this approach would