To be fair, it was Will who was getting confused! :-)






"This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant,
Richmond, Surrey, TW9 1DN, 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: Rick Root
To: CF-Talk
Sent: Mon Dec 11 02:31:26 2006
Subject: Re: Bond sucks and cfreturn sucks

> Dave, but even a value in CF usually works like so -- value="thevalue"

I really don't understand the point of this whole discussion.

<tag foo="bar">

This passes the value "bar" in and assigns it to the variable "foo". 
Without "foo" the tag wouldn't know what to do with "bar"..

<cfset foo = bar>

Obviously, you're assigning a value to a variable here.

However, a FUNCTION is a self-contained programmatical entity that 
returns a value.  Not a variable.  So there is no variable name or 
attribute name to be set.

Coldfusion handles this the same way just about all other languages 
handle returning values from a function.

        return val;
or
        <cfreturn val>

There's no point in doing something like <cfreturn var="#val#"> because 
you're not assigning the value to the variable named "var".. that's 
entirely depending on things outside of the function.  The function 
doesn't know or care about what is being done with the value.

Rick



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263505
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to