Thanks for the clarification, guys.  (And I'll never spell applicAtion.cfc
with a lowercase A again.)  :)

-----Original Message-----
From: Sean Corfield [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 30, 2005 1:51 PM
To: CF-Talk
Subject: Re: this scope

On Wed, 30 Mar 2005 13:28:43 -0700, Paul <[EMAIL PROTECTED]> wrote:
> 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.

Application.cfc (capital A!) is one of those special cases where magic
happens behind the scenes so you have to use 'this' scope for the
attributes that are equivalent to <cfapplication>.

In pretty much all other cases you should avoid 'this' scope since it
represents public instance data - and public data is a Bad Thing(tm)
because it does not provide encapsulation.
-- 
Sean A Corfield -- http://corfield.org/
Team Fusebox -- http://fusebox.org/
Got Gmail? -- I have 50, yes 50, invites to give away!

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:200806
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to