varScoper updated
May 20, 2008 · 7 Comments
varScoper, an essential tool for all ColdFusion developers that use CFCs, has just been updated tonight. If you're using it, you'll want to download this update to take advantage of the improvements in this release.
If you're not using varScoper... WTF? Are you crazy? Are you not using CFCs? varScoper is an absolutely essential tool for you. Did I say essential?
Tags: coldfusion

7 responses so far ↓
1 Dan Roberts // May 21, 2008 at 5:43 AM
2 Sean Corfield // May 21, 2008 at 8:53 AM
3 Dan Roberts // May 21, 2008 at 11:30 AM
Option 1 (ease pain): Allow var scoping anywhere in where a variable is set or output variable name is passed (query name, index, etc), and possibly default automatic variables (cfhttp, cfcatch, etc) to "var scope". The latter could break some code but very little IMO and this could be a check in the code compatibility analyzer.
Option 2 (fix): Add attribute to cfcomponent specifying that that function variables default to local scope.
4 Sean Corfield // May 21, 2008 at 11:59 AM
5 Jason Sheedy // May 27, 2008 at 3:00 AM
6 Sean Corfield // May 27, 2008 at 7:48 AM
varScoper is just that: a tool that helps check you are following best practice.
7 Dan Roberts // Jun 21, 2008 at 5:16 PM
Leave a Comment