Though I highly doubt Sean's challenge included Bluedragon...
I've had to use evaluate on BD with a cfc, but that's probably because
I misunderstand how "this" is supposed to work in cfc's nowadays (let
alone if it's the same on mx and bd):
<cfloop collection="#this#" item="x">
<!--- evaluate is for bd6.1 --->
<cfset ispect = evaluate('this.' & x)>
<cfif isSimpleValue(ispect) or isStruct(ispect) or isArray(ispect)>
<cfset variables.localvars[x] = ispect />
</cfif>
</cfloop>
It's used when trying to save the state of a CFC to an xml file.
this[] syntax didn't work, but I seem to remember someone saying that
"this" in a cfc is wrong anyway - so it's probably wrong in the first
place :-/
BD6.1 btw
<cfset ispect = this[x]> works on cfmx6.1
On Thu, 24 Mar 2005 15:09:41 -0600, Raymond Camden <[EMAIL PROTECTED]> wrote:
> Well, I'd say almost nothing forces you to use Evaluate. Just like
> nothing forces you to use addition. However, that being said, I can
> think of one case where you _almost_ need evalute... and that's
> valueList. You must pass in the query name and column name, and it
> can't be dynamic. Strictly speaking though, evaluate isn't necessary,
> as you can do the same thing with a loop and bracket notation.
>
> On Thu, 24 Mar 2005 12:35:01 -0800, Ian Skinner
> <[EMAIL PROTECTED]> wrote:
> > I just wanted to add that for the purpose of "evaluate()" bracket notation
> > and dot notation are pretty much equal. Neither of them are using an
> > evaluate function.
> >
> > I believe the spirit of the challenge, as Jared opened with, was to show a
> > situation were evaluate() was the only way to achieve the correct result.
> >
> > I have yet to run into such a situation in my own coding.
--
~Blog~
http://www.robrohan.com
~The cfml plug-in for eclipse~
http://cfeclipse.tigris.org
~open source xslt IDE~
http://treebeard.sourceforge.net
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:199917
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