illiquent, you put those "other attributes" AFTER the argument definitions. So for instance, to make a method accessible to "remote" calls, use:
function testmethod (numeric x access="public" returntype="numeric") {
return arguments.x+1;
}
[Update: after posting this, I double-checked my work and found that I was mislead in my testing to suggest the above. And I was misreading the doc below. Fortunately, what I wrote next is indeed accurate.]
You can also put them after the closing parenthesis of the methods args, as in:
function testmethod (numeric x) access="public" returntype="numeric" output="false" {
return arguments.x+1;
}
Then again, as you already know from your example above, you can also declare the first two of those specific "attributes" implicitly at the front of the method declaration, but others do need to be after the close paren:
public numeric function testmethod (numeric x) output="false" {
return arguments.x+1;
}
As for how one would know that they can provide what would have been cffunction attributes to a script function in the way I show above, t is indeed documented, as wolfshade indicated. The problem is that it's not in the CFML reference. Instead, see see ColdFusion Help | Defining components and functions in CFScript , which says (rather subtly and buried among lots of other info):
"The syntax to define a function is similar to the component definition:
...[snip]...
access returnType function functionName(arg1Type arg1Name="defaultValue1"
arg1Attribute="attributeValue...,arg2Type
arg2Name="defaultValue2" arg2Attribute="attributeValue...,...)
functionAttributeName="attributeValue" ... {
and the "arg1Attribute" "functionAttributeName" is an example of what they mean by what would have been an attribute to a cffunction, and note that it appears AFTER the closing parenthesis of the args.
[another edit after original posting:]
As for what they mean by the references to arg1attribute above, I honeslty don't know. the reference to 'arg1type arg1name="defaultValue1"' should be all that is needed for each arg. Anyone else know what the "arg1attribute" would be about?