tracker issue : CF-3037453

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

Bug 75348:(Watson Migration Closure)[b]Order of unscoped variable checking in 8[/b]

| View in Tracker

Status/Resolution/Reason: Closed/Deferred/

Reporter/Name(from Bugbase): David McGuigan / David McGuigan (David McGuigan)

Created: 02/06/2009

Components: Core Runtime, Application

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 0


[b]Order of unscoped variable checking in 8[/b]

         Function local (UDFs and CFCs only)
         Thread local (inside threads only)
         Variables (local scope)

I would like to see the Application and Request scopes added to that list ( besides variables, those are the only two I feel like really even belong in the mechanism ). 

Because it's such a hassle to type out application. for every application-scoped reference, I commonly declare a shorthand at the top of a file and then reference it subsequently. I know this will enfuriate an explicit scoping purist or two, but I would MUCH MUCH rather be able to reference application variables directly or somehow flag application variables as scopelessly accessible. 

My application-scoped singletons tend to comprise the majority of the work of the majority of my applications, so being able to call singleton.method( ) ubiquitously instead of application.singleton.method( ) would be SOOOO VALUABLE.

[b]More importantly, I would like to be able to manage the order of this list both in the administrator AND on a per-application level. This would be a prime candidate for per-application customization, and would naturally fit into the per-application enhancements so far in 9.[/b]

*This would include the ability to add/remove scopes in the admin and would exclude any not defined in Application.cfc

<cfset this.unscopedEvaluationOrder = [ 'Variables', 'Application', 'Request' ] />

This would knock my socks off, not to mention provide performance gains.



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

Watson Bug ID:	3037453

External Customer Info:
External Company:  
External Customer Name: David McGuigan
External Customer Email: 5E0D54C04462BF5E992016B6
External Test Config: 02/06/2009