var scoping

Hi,

is there a reliable tool for script and tag and mixed syntax for checking var scoping issues?

Best regards,

Gunnar

There used to be var scope but it was never continued to be developed.

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057
Direct: (909) 248-3408

ColdBox Platform: http://www.coldbox.org

ContentBox Platform: http://www.gocontentbox.org
Linked In: http://www.linkedin.com/pub/3/731/483

Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano | twitter.com/gocontentbox

Yeah, Var Scoper only worked on tags if I recall. Same issue with the Rancho code coverage tool

I’d like to see something like this be added as an extension to Lucee. Writing a community tool would be difficult since one would basically need to rewrite an entire CFML parser from scratch. It would made sense to plug into an engine’s existing language parser.

I like things like Railo/Lucee’s “Local scope mode”, but it’s incompatible with ColdBox since we use variables scope on purpose in CFCs to maintain scope. Now, a solid argument can be made that we should prefix those with “variables.”.

Related tickets:
https://ortussolutions.atlassian.net/browse/COLDBOX-202
https://ortussolutions.atlassian.net/browse/COLDBOX-162

Perhaps we should also add one for supporting Railo/Lucee’s local scope mode.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com