Hmmm, not sure what you mean by "build a method call to the original
method, and write the values positionally by iterating through the
array". Do you mean write it out to disk or VFS? I'd thought of that,
but wasn't super fond of the idea, since unless I'm missing something,
you'd have to do that for every supported number of arguments for
every publicly accessible method in the app.

Or maybe I'm just not on your wavelength here.

Dave

On Wed, Oct 6, 2010 at 2:24 PM, Dave Watts <[email protected]> wrote:
>
>> Missing the point. The method already exists and has other callers,
>> who pass separate arguments by name or position. I'm not redesigning
>> its API to take an array of arguments. I want to generically pass in a
>> set of ordered arguments to it.
>
> How about writing a new method that takes two arguments: the name of
> the method you want it to call and an array of arguments. This method
> could then build a method call to the original method, and write the
> values positionally by iterating through the array. Presumably, you'd
> plop this method in a utility CFC, rather than in the original CFCs.
> Or, you could add it to the superclass so that it's present through
> your class hierarchy.
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> http://training.figleaf.com/
>
> Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
> GSA Schedule, and provides the highest caliber vendor-authorized
> instruction at our training centers, online, or onsite.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337919
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to