tracker issue : CF-3038485

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

Bug 77082:I don’t know if this is a bug or not, but a friend of mine came across this

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Todd Rafferty / Todd Rafferty (Todd Rafferty)

Created: 05/06/2009

Components: Language, Datastructure

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 1


I don’t know if this is a bug or not, but a friend of mine came across this.  He’s a flex developer and he wanted to use the new struct creation {} in CF 8.0.1.

He was writing the following code:
<cfset foo = { ’quantity’=query.quantity, ’productNumber’=query.productNumber }>

This fails because CF doesn’t like the ’quotes’ - He was complaining because this means he has to use the <cfset foo[’productNumber’] = query.productNumber> method because this is the only way he can get variables passed to flex that won’t be in all UPPERCASE.

Wanted to gather some feedback and see if this is something we should be consistent on or if this is something that needs pushed to the language committee.

Should also note that the code above works in Railo. Not sure about OpenBD.


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

Watson Bug ID:	3038485

Deployment Phase:	Release Candidate

External Customer Info:
External Company:  
External Customer Name: Todd Rafferty
External Customer Email: 65E3269B4558959A992016B6
External Test Config: 05/06/2009



This would make working with Flex much easier, particularly when creating messages for Flex messaging.
Vote by External U.
23731 | November 10, 2011 07:20:19 PM GMT