1

I'm running into a strange issue when I try to use quoted key values in nested implicit structs.

<cfset outer = {
    inner = {
        standard = "works",
        "quoted" = "does not work"
    }
} />
<cfdump var=#outer.inner["quoted"]# />

This produces the error: Element quoted is undefined in a CFML structure referenced as part of an expression.

Dumping the entire outer struct shows no value there as well.

What's going on here?

4

1 に答える 1

2

Your code works for me. Are you on ColdFusion 9.0.1? I believe there were some bug fixes related to nested structs/arrays in 9.0.1. Try installing the updater if you have not.

于 2012-07-13T16:08:31.603 に答える