Indeed, we had a discussion on this and I was for not using evaluate (others were) - though I am not 100% against it, I have never seen bad performance with it all in all.
"This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -----Original Message----- From: Aaron Rouse <[EMAIL PROTECTED]> To: CF-Talk <[email protected]> Sent: Tue Jul 25 21:12:56 2006 Subject: Re: Cool feature I didn't know about I have not messed with GetMetaDAta much but I'd imagine GetMetaData(Instance[Arguments.MethodName]) would work. I ran into a case not too long ago when I had to use evalutate for some method calls but it was because I was trying to stay in cfscript, had I been using a cfinvoke I am pretty sure I could have avoided it. Typically anytime you are doing Evaluate("something." & somethingelse) you can avoid Evaluate() via using what I always refered to as the structure bracket notation. Of course this could get into a long drawn out debate on whether avoiding Evaluate() is even worth it now days in MX. I just avoid it out of habbit and style choice more than anything else these days. On 7/25/06, Robertson-Ravo, Neil (RX) <[EMAIL PROTECTED]> wrote: > > Will have to dig in my code - I suppose the question to the gurus etc is > can you 100% dispose of using evaluate? > > One example I think I have is > > GetMetaData(evaluate('instance.' & arguments.methodName)) > > Or > > evaluate('attributesStruct.#attributeName#') > > > > > > > > > > > > "This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, > Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business, > Registered in England, Number 678540. It contains information which is > confidential and may also be privileged. It is for the exclusive use of > the > intended recipient(s). If you are not the intended recipient(s) please > note > that any form of distribution, copying or use of this communication or the > information in it is strictly prohibited and may be unlawful. If you have > received this communication in error please return it to the sender or > call > our switchboard on +44 (0) 20 89107910. The opinions expressed within > this > communication are not necessarily those expressed by Reed Exhibitions." > Visit our website at http://www.reedexpo.com > > -----Original Message----- > From: Aaron Rouse <[EMAIL PROTECTED]> > To: CF-Talk <[email protected]> > Sent: Tue Jul 25 20:50:39 2006 > Subject: Re: Cool feature I didn't know about > > Any examples of where you could not see a way around it? > > > That is a neat trick with the ArraySum although I'd guess the number would > be all out of whack if you are doing grouped(CF not SQL) output. > > > On 7/25/06, Robertson-Ravo, Neil (RX) < > [EMAIL PROTECTED]> > wrote: > > > > Examples? Sometimes I hate using evaluate but I sometimes cannot see a > way > > around it! > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:247692 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

