>       <cfscript>
>       function boring() { return now(); }
>       </cfscript>


wow!.. I didn't know you could do that.  Is there *any* way to make them
private?  I noticed that the component documentation says all the arguments
are required, is it possible to declare which arguments are required and
which ones aren't?  What else can you do with this... playing with it, it
really doesn't seem very flexible, but I still have hope.


Paul  (wishing I could use script syntax for everything)



> -----Original Message-----
> From: Raymond Camden [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 20, 2003 2:33 PM
> To: CF-Talk
> Subject: RE: CFC Issues....
>
>
> My blog entry talked about creating a UDF _inside_ a method, this is NOT
> the same as creating a UDF in a CFC. For example:
>
> <cfcomponent>
>
>       <cfscript>
>       function boring() { return now(); }
>       </cfscript>
>
>       <cffunction name="foo">
>               <cfreturn boring()>
>       </cffunction>
>
> </cfcomponent>
>
> This is perfectly valid. The only issue is that EVERY UDF defined, even
> cfscript ones, are considered methods. So "boring" will show up in the
> metadata. In general, you do not want to use cfscript, instead, use
> cffunction and mark the udfs as private so they can't be called from the
> outside.
> > > --------
http://www.fusionauthority.com/signup.cfm


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Get the mailserver that powers this list at 
http://www.coolfusion.com

Reply via email to