tracker issue : CF-3041430

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 82840:Summary: Bug (?) in struct notation variationsThis code works:<cfscript> st = structNew(); st

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/

Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)

Created: 05/11/2010

Components: Language, Functions

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Minor / Unknown

Locale/System: English / Platforms All

Vote Count: 1

Problem:

Summary:  Bug (?) in struct notation variationsThis code works:<cfscript>    st = structNew();    st.key = structNew();    st.key.default = "foo";</cfscript>This code works:<cfscript>    st = structNew();    st.key = structNew();    st.key["default"] = "foo";</cfscript>This code works:<cfscript>    st = structNew();    st.key = structNew();    st["key"]["default"] = "foo";</cfscript>This code breaks:<cfscript>    st = structNew();    st.key = structNew();    st["key"].default = "foo";</cfscript>There’s no good reason why the last one breaks, is there?NB: it’s bung on CF8 too.NB2: "default" - a keyword - was chosen for this example by design.-- Adam
Method:

[see summary]
Result:

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3041430

External Customer Info:
External Company:  
External Customer Name: Adam Cameron
External Customer Email: 17EB1A7649DA54C7992015A9
External Test Config: 05/11/2010

Attachments:

Comments: