I start this year with a big question. When I do
myName = "Henry";
myCustomFunction( [ myName, "Thierry" ] );
It throws an error like myName is undefined
. Why?
I can resolve this by doing
myName = "Henry";
aMyArrayArgument = [ myName, "Thierry" ];
myCustomFunction( aMyArrayArgument );
But still, I want to know why Coldfusion don't allow to pass [ myName, "Thierry" ]
in arguments?
I use Framework One (FW/1) if it can help.
Thank you!