I wouldn't quite agree with that conclusion.  Yes, if a function
outputs something, it should be declared to return void.  But if a
function returns void, there's absolutely no reason that it has to (or
even should) output stuff.  Most "action" methods behave this way;
things like updateUserPassword, or postContentObject, etc.  Nothing to
return, nothing to output, and if something goes wrong, the method
will tell you via an exception.

cheers,
barneyb

On 6/26/05, Will Tomlinson <[EMAIL PROTECTED]> wrote:
> Dunno if this helps, but found it on Sean's site.
> 
> The bottom line is really that a CFC method should either output HTML / text 
> or it should return a value. In other words, either you have 
> returntype="void" output="true" or you have returntype="xxx" output="false" 
> (where xxx is some non-void type).
> 
> http://www.corfield.org/blog/index.cfm?do=blog.day&day=26&month=10&year=2004
> 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210569
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

Reply via email to