Hi I want to do the following thing : <cffunction name='set' access='remote'
output='no'> <cfargument name='name' type='string' required='yes' >
<cfargument name='value' type='any' required='yes'> <cfif IsDefined(
set_#name#() ) is false> <CFSET 'THIS.#name#' = arguments.value> <cfelse>
<CFSET 'THIS.#name#' = set_#name#(#value#)> </cfif> </cffunction> The
goal is to avoid many set_id(), set_title(), ... methods that are just doing
this.name = arguments.value BUT keeping a way to add a custom function if a day
I need a method to be more specific. Imagine a set(price,12) function that
basically set this.price to 12 The day I need to add an internal conversion
(changing currency for example) I just have to add a set_price() function with
custom code, and everything still works well. How can I do that ? The bonus
is to keep the possibility to have more than one argument : if one day my
set_price() function needs a value AND a currency ('dollar', 'euro' ...) I
still want my set() function to work. What should I do ?