I thought it was captal C:

appliCation.CfC

Hmm, that looks wrong... aPPlication.cFc?

Ok, ok, I like Sean's spelling... Application.cfc.

Why? Because it's the one that works, that's why! Only an issue for
Solaris, OSX, Linux, etc. where case is important. Which causes me to
ask... why should a modern OS be dependent on case at all? Is there a
real reason behind it, or is it a useless legacy "feature" of a
30-year-old platform?

(ducks as the Topic Monitors start throwing off-topic grenades at my PC)

J

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


-- 
Continuum Media Group LLC
Burnsville, MN 55337
http://www.web-relevant.com
http://www.web-relevant.com/blogs/cfobjective

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:200812
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