>  >>I don't think its a structure.  Just a variable name with a "." in it.
> 
> But this is unconsistent with the way CF really works:
> Try <CFSET test.test = 0>
> <CFDUMP var="#test#">
> 
> CFDUMP shows that test is a structure with a variable " test", not a
> variable "test.test"

The way CF "really works" in the example you provided is implicitly creating
a structure when you use that syntax.  In the previous example, since
session is an existing structure CF cannot create it so it treats it as a
variable "session.test" that it places into the URL scope.

You can test this behavior by running the code below:

<cfset tester.testme = 'i am alive' /> <!--- creates a structure --->

<cfdump var="#tester#">
<cfdump var="#url#">

If you place these in a file (test.cfm) and browse them with the following
urls:

Test.cfm
Test.cfm?tester.test=1

You will see that the exact same phenomenon occurs; when the struct already
exists, CF cannot implicitly create it and creates a variable with the name
provided.

HTH, 

Rich Kroll


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290399
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to