mike are we starting to see some duplicate posts from last week?

tw

tony weeg
sr. web applications architect
navtrak, inc.
[EMAIL PROTECTED]
www.navtrak.net
office 410.548.2337
fax 410.860.2337


-----Original Message-----
From: Paul Spitzer [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 26, 2003 10:06 AM
To: CF-Talk
Subject: UDF in CFC's - was: CFC Issues....


>       <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

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Reply via email to