> >> <cfscript>
> >> function boring() { return now(); }
> >> </cfscript>
> > wow!.. I didn't know you could do that.
>
> Why would anyone want to?
>
> You can't set the access type, you can't specify the return type, you
> can't specify any argument types.

<cffunction> offers a lot of benefits, but many still like a lot the
scripting syntax. I gave up on <script> for UDFs for the reasons you listed
above, but I go back to <cfscript> pretty often


> You can still use <cfscript> for the *body* of all your functions
> (after the <cfset> tags for your 'var' scope local variables!).

What drives me crazy is that the compiler doesn't let me declare all the
'var' scope local variables in a single <cfscript> tag after the opening
<cffunction>...

----------------------------
Massimo Foti
Certified Dreamweaver MX Developer
Certified Advanced ColdFusion MX Developer
http://www.massimocorner.com/
----------------------------


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