> I've been avoiding the "this" scope in my CFCs after reading > several blogs and posts on the topic. Is that still the best > practice in CFMX 7? I ask because all the examples I see of > application.cfc set and refer to this.name, > this.applicationTimeout, etc.
Yes, avoidance of unnecessary use of public member variables is still best practice. However, just like the usage of Application.cfm is quite a bit different from other CF pages, the usage of Application.cfc is quite a bit different from other CFCs. The variables that you quoted from the examples need to be public, because those public member variables replace the attributes of your CFAPPLICATION tag. You don't instantiate Application.cfc the way you would normally instantiate a CFC, and you don't invoke its methods directly, either. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:200802 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

