That long? :-p
Neil Clark Team Macromedia http://www.macromedia.com/go/team Announcing Macromedia MX!! http://www.macromedia.com/software/trial/ -----Original Message----- From: Raymond Camden [mailto:[EMAIL PROTECTED]] Sent: 07 June 2002 15:16 To: CF-Talk Subject: RE: Opinion: CFC / Request scope question. I think the question can be made a bit more broad - what is better: 1) <cfinvoke component="test" method="x"> or 2) <cfset x = createObject("component","test")> <cfset y = test.foo()> In general my feelings are that if you are going to do anything more than call one method, you should use #2. It should be quicker (since you have the object already), but more than that, it's handier to have the object around I would think. Of course, since CFCs have been out for just a little while now, what I think makes sense now will probably change by next Tuesday. ;) ======================================================================= Raymond Camden, ColdFusion Jedi Master for Macromedia Email : [EMAIL PROTECTED] Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 07, 2002 10:08 AM > To: CF-Talk > Subject: Opinion: CFC / Request scope question. > > > So, I'm pretty familiar with CFCs and getting it to work, > etc. I learned > that you can actually store a function within the variable > scope (in fact, > I learned that when you create a UDF, it's actually placed in > the variable > scope). I also recently learned that you can push a component of an > object inside a variable as well (via CreateObject();). > > I created a 'logging' component that all it does is takes an argument > (event_id) and it checks the db if it should log the event > and / or notify > someone of the event. I pushed this logging component into > the request > scope and it's now available to all my applications (even other CFCs). > > I guess my question is, is this a bad thing to do? What's > the impact of > pushing components into the request scope (besides > memory)...? I know > there's this holy war going on regarding the 'request' scope as some > people say it shouldn't be touched and other people claim > that's what it's > for. > > Just looking for opinions... > > Thanks, > ~Todd > > -- > ============================================================ > Todd Rafferty ([EMAIL PROTECTED]) - http://www.web-rat.com/ | > http://www.flashCFM.com/ - webRat (Moderator) | > http://www.ultrashock.com/ - webRat (Back-end Moderator) | > ============================================================ > > ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists