Another option you have, not pretty but an option. Is to have a
controling method like addRec(rec)
{
if(isStruct(rec)) return addStrcutRec(rec);
if(isArray(rec)) return addArrayRec(rec);
}
Not nearly as pretty but to the end user of the API you could repsent
it as method overloading...Adam H On 5/9/05, David Ross <[EMAIL PROTECTED]> wrote: > you can't overload CFC methods like you can in Java, but you can have > multiple method signatures by setting required="false" on the cfargument > tag. > > -Dave > > >>> [EMAIL PROTECTED] 5/9/2005 11:44:15 AM >>> > I know so far I can't overload my CFCs like I can in my Java classes, > but I > was wondering if CF 7 allows this. Has anyone had time to explore > this? > > Precia > > ---------------------------------------------------------- > 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). > > CFCDev is supported by New Atlanta, makers of BlueDragon > http://www.newatlanta.com/products/bluedragon/index.cfm > > An archive of the CFCDev list is available at > www.mail-archive.com/[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). > > CFCDev is supported by New Atlanta, makers of BlueDragon > http://www.newatlanta.com/products/bluedragon/index.cfm > > An archive of the CFCDev list is available at > www.mail-archive.com/[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). CFCDev is supported by New Atlanta, makers of BlueDragon http://www.newatlanta.com/products/bluedragon/index.cfm An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
