tracker issue : CF-3576114

select a category, or use search below
(searches all categories and all time range)
Title:

Make the way scopeless variables are handled configurable...

| View in Tracker

Status/Resolution/Reason: To Fix//Investigate

Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)

Created: 06/10/2013

Components: Language

Versions: 10.0

Failure Type: Enhancement Request

Found In Build/Fixed In Build: Final /

Priority/Frequency: Trivial / Unknown

Locale/System: English / Platforms All

Vote Count: 1

I'm lifting this idea from Railo: https://issues.jboss.org/browse/RAILO-2142

Basically the way function-local variables are handled in ColdFusion bites, and always has. An unscoped variable in a function should default to be function-local, not variables scope.

The horse has bolted that particular stable for "standard behaviour", but Railo have come up with  a way of making it configurable at server / app / function level.

This is cool.

I reckon it should be added to CF11.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3576114

External Customer Info:
External Company:  
External Customer Name: Adam Cameron.
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

Unnecessary time spent adding vars to everything, and additional time spent when training new developers since it breaks conventions from other languages. Finally having two separate paradigms confuses it further, since on a CFM page, it is not needed, just in CFCs.
Vote by External U.
15210 | June 11, 2013 05:41:24 PM GMT
To be considered for the next release
Comment by Rupesh K.
15208 | November 12, 2013 03:37:38 PM GMT
Actually I gotta say that - in the interim - I've really cooled to the idea of admin settings for this sort of thing. They can't really work in a lot of situations when code needs to be considered portable, or one uses third-party portable code. I'd like to hear what your mooted solution is though.
Comment by External U.
15209 | June 23, 2015 12:31:35 AM GMT