tracker issue : CF-3849074

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

.duplicate() member function

| View in Tracker

Status/Resolution/Reason: To Fix//

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

Created: 11/07/2014

Components: Language

Versions: 11.0

Failure Type: Enhancement Request

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Trivial / Unknown

Locale/System: English / Platforms All

Vote Count: 6

There's no .duplicate() member function for structs (and, for that matter, all other data types where applicable). There should be.

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

Watson Bug ID:	3849074

External Customer Info:
External Company:  
External Customer Name: Adam Cameron.
External Customer Email:  
External Test Config: My Hardware and Environment details:



+1, this would be useful ...........
Vote by External U.
10237 | November 08, 2014 04:34:20 PM GMT
+1 .......................
Vote by External U.
10238 | November 16, 2014 09:52:11 PM GMT
+1. "You know how when you make a copy of a copy, it's not as sharp as... well... the original." Doug Kinney #3 - Multiplicity
Vote by External U.
10239 | November 17, 2014 10:19:55 PM GMT
Would be a good addition
Comment by Vamseekrishna N.
10232 | December 11, 2014 06:27:53 AM GMT
Vote by External U.
10240 | September 30, 2015 05:14:47 PM GMT
+1 --------------------------------------------------
Vote by External U.
10241 | October 02, 2015 08:46:56 AM GMT
Added duplicate and serialilzeJSON as member functions. will be evaluating if others can added too. So now you can use them like this: arr = [1,2,3,4,5]; x = arr.duplicate(); writeOutput(x.serializeJSON());
Comment by Milan C.
10233 | October 27, 2015 10:59:23 PM GMT
Correction: serializeJSON member function is implemented as toJSON() correct way to use: arr = [1,2,3,4,5]; x = arr.duplicate(); writeOutput(x.toJSON());
Comment by Milan C.
10234 | October 27, 2015 11:15:12 PM GMT
Nice one. Please keep us in the loop vis-a-vis this "evaluation". I think the CFML community is often better placed to make decisions on the appropriateness of these things than the CF Team are, as we're the ones who use CFML on a daily basis.
Comment by External U.
10235 | October 28, 2015 03:05:01 AM GMT
Can you please confirm in what version of ColdFusion this is going to be implemented in. It says "to fix" but does not say which version.
Comment by External U.
10236 | January 25, 2016 08:22:48 AM GMT
+1....this is an improvement worth adding.
Vote by External U.
10242 | January 28, 2016 03:49:06 AM GMT