<cfcomponent>
<cffunction name="foo" access="public" output="false"
returntype="void">
<cfargument name="bar" type="string" required="false" />
<cfdump var="#arguments#" />
<cfabort />
</cffunction>
</cfcomponent>
Called from:
<cfset x = CreateObject("ArgTest") />
<cfset x.foo() />
Will output an empty struct as it should.
However, When called from another method the struct is not empty.
<cfcomponent>
<cffunction name="foo" access="public" output="false"
returntype="void">
<cfargument name="bar" type="string" required="false" />
<cfscript>
foo2();
</cfscript>
</cffunction>
<cffunction name="foo2" access="public" output="false"
returntype="void">
<cfargument name="bar2" type="string" required="false" />
<cfdump var="#arguments#" />
<cfabort />
</cffunction>
</cfcomponent>
Called from:
<cfset x = CreateObject("ArgTest") />
<cfset x.foo() />
Will output bar2 [undefined]
This has been tested in 1.4 as well as 1.5 nightly build.
--
tag/function ref: http://www.openbluedragon.org/manual/
mailing list - http://groups.google.com/group/openbd?hl=en
Get to Texas in Feb for OpenCFSummit http://www.opencfsummit.org/