> cfc2
> <cfcomponent>
> <cffunction name="specialNumber" access="public"
> returntype="???">
> <cfargument name="theNumber" required="yes"
> type="numeric">
>
> <cfset var specialNumberReturn=''>
> <cfscript>
> if(arguments.theNumber gt 5) {
> specialNumberReturn=true;
> } else {
> throw('This CFC will self destruct
> in...');
> }
> </cfscript>
>
> <cfreturn ?????>
> </cffunction>
> </cfcomponent>
>
You want to return this, which wil be an instance of the CFC.
<cfreturn this>
> " If another CFC wants to use a method and require that type
> of value, then you would just use type="SpecialNumber" for
> your cfargument tag.""
>
> cfc1
> <cfcomponent>
> <cffunction name="yaddaDoodle" access="public"
> returntype="boolean">
> <cfargument name="theSpecialNumber" required="yes"
> type="specialNumber">
> ....
> </cffunction>
> </cfcomponent>
>
> How does CFC 1 know where to look for CFC 2?
It doens't "look", every instance of a CFC has metadata. The MD tells you
waht type it is. So it just checks the MD.
===========================================================================
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc (www.mindseye.com)
Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)
Email : [EMAIL PROTECTED]
Blog : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus
"My ally is the Force, and a powerful ally it is." - Yoda
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]