On 9/9/05, Patrick McElhaney <[EMAIL PROTECTED]> wrote: > On 9/9/05, Nando <[EMAIL PROTECTED]> wrote: > > I like using an instance structure sometimes to seperate out the instance > > variables from anything else that may be in the variables scope. > > Can you give an example of "anything else"? >
Sure. I have a component that is instantiated in my init() method that is simply a CFC of utility functions. If I want to get a snapshot of my instance variables, I don't want that CFC to be with the object's attributes. It's really just a "helper" variable that I'd like to use across methods in my CFC, and I don't want to have to re-instantiate the utility CFC in each method. Personally, my struct is always called variables.instance (clever), but the principle is the same. Regards, Dave. ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). CFCDev is supported by New Atlanta, makers of BlueDragon http://www.newatlanta.com/products/bluedragon/index.cfm An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
