On 1/14/06, Sean Corfield <[EMAIL PROTECTED]> wrote: > There is a big difference between passing a single object (as you do) > and what Sam is suggesting, which is effectively passing all of the > public members of the object (functions included!) as separate > arguments to a function. > > I would pass a single object and not use argumentCollection.
This would also be a good case for a Memento? <cfset contact.init(argumentCollection=contactVOs[i].getMemento()) Where contact.getMemento() returns a struct of values reprecenting the internal state of the contact object, and assuming that those struct values match args that contact.init() expect. -Cameron -- Cameron Childress Sumo Consulting Inc http://www.sumoc.com --- cell: 678.637.5072 aim: cameroncf email: [EMAIL PROTECTED] ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
