The only time I ever allow my team to access an external scope in a component is when that component is specifically designed to manipulate that scope. For instance - we have SessionManager and ApplicationManager components which access their respective scopes. These, however, are the only CFCs that touch shared scopes, and no other CFCs are allowed to call them.
Roland -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeffry Houser Sent: Tuesday, September 14, 2004 3:03 PM To: [EMAIL PROTECTED] Subject: Re: [CFCDev] Help with CFCs in the Shared Scope Theoretically, yes you are correct. However, I (and I'm sure many on this list) would question whether a component should directly access variables in a shared scope. Would it be better for you to return your object and add it to the shared scope? At 02:02 PM 9/14/2004, you wrote: >Here's the scenario: > >A CFC in the application scope. A function within creates a new object and >stashes it in the SESSION scope. > >Should each new createObject() statement and storage of the returned >object in the SESSION scope be completely independent of each other, >meaning no shared instance data? > > >Any help would be appreciated. > >Thanks, > >-- >Alex Sherwood > >---------------------------------------------------------- >You are subscribed to cfcdev. To unsubscribe, send an email >to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' >in the message of the email. > >CFCDev is run by CFCZone (www.cfczone.org) and supported >by Mindtool, Corporation (www.mindtool.com). > >An archive of the CFCDev list is available at >www.mail-archive.com/[EMAIL PROTECTED] -- Jeffry Houser, Web Developer, Writer, Songwriter, Recording Engineer <mailto:[EMAIL PROTECTED]> -- AIM: Reboog711 | Phone: 1-203-379-0773 -- My Books: <http://www.instantcoldfusion.com> Recording Music: <http://www.fcfstudios.com> Original Energetic Acoustic Rock: <http://www.farcryfly.com> -- When did Reality Become TV ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED] ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
