Good information, but I don't make the connection between that and my scrambled CFC. Maybe I'm daft. :)
On 1/8/06, Baz <[EMAIL PROTECTED]> wrote: > > If you have a CFC within another CFC you could save it as either: > > 1. variables.InsideCFC OR > 2. this.InsideCFC > > I am fully aware the differences between the 2 scopes and I'm sure most > people would say that it is better to save it in the variables scope. > > However I see a lot of people doing this: > > - OutsideCFC.getInsideCFC().PerformMethod() > > A method is defined in the OutsideCFC to return the entire InsideCFC > thereby > exposing all its methods. Is that not the same thing as just having it > directly accessible in the THIS scope? Not to mention that your calls > would > look nicer: > > Nicer: OutsideCFC.InsideCFC.PerformMethod() > Uglier: OutsideCFC.getInsideCFC().PerformMethod() > > Cheers, > Baz > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:228793 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

