I would say that there is one case where you would need to create a
local copy of a variable that you passed in.

If you are passing in the name of a variable that you are going to use
inside the function and then return a copy either as a copy or to
overwrite the variable you passed in, you may want to create a local
copy of it.

For instance, if you had a function that was working with an object in
the session scope, but you dont want to manipulate the session scoped
object directly, you could pass in the session object, make a copy of
it in your local method scope and then pass out the object where you
could overwrite the original with the changes.  This keeps the
original from being used in the meantime while only some of the
manipulations have been made.

But for most cases, no, you dont need to create a local copy of arguments.
-- 
Ryan Guill
BlueEyesDevelopment
[EMAIL PROTECTED]
www.ryanguill.com
(270) 217.2399

The Coldfusion Open Application Library - COAL - http://coal.ryanguill.com

www.ryanguill.com/
The Roman Empire: www.ryanguill.com/blog/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217289
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to