More Fun with ArgumentCollection
- December 9, 2008 2:05 PM
- ColdFusion
- Comments (0)
So, I went back and visited the thread on AttributeCollection and ArgumentCollection I talked about back on Wednesday, and I came up with another test I wanted to look at with ArgumentCollection:
<cfset request.test = {
value1 = "One",
value2 = "Two"
} />
<cfset request.test2 = {
value3 = "Three",
value4 = "Four"
} />
<cffunction
name="OutputArguments"
returntype="void"
output="true"
>
<cfargument name="argumentCollection" type="struct" requred="false" default="#request.test2#"/>
<cfdump var="#ARGUMENTS#" label="From OutputArguments()" />
</cffunction>
I'm not sure what I expect the result to be, but the result I got isn't it: