now all we need is a full declaration syntax:
public String hi(String name="world") {
return "hello, #name#";
}
I can certainly forgo the permissions stuff, and even metadata for the
cfcbrowser, but access and return type are important. Sure be nice to have
typed parameters in script-based functions, even without 'defaultability'.
Seems like it wouldn't be that hard to do from a compilation standpoint,
though the lexer would have to be a little more sophisticated (but that's
probably generated anyway).
-----Original Message-----
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 3:27 PM
To: CF-Talk
Subject: RE: CFCs and UDFs
Eh? You _can_ have script based methods in a CFC. You just can't assign
security to it or define return type, etc.
alpha.cfc:
<cfcomponent output="true" >
<cfscript>
function hi() { return "hello"; }
</cfscript>
</cfcomponent>
test.cfm:
<cfset o = createObject("component","alpha")>
<cfdump var="#o.hi()#">
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

