tracker issue : CF-4198574

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

duplicate member functions missing from boolean and numeric types

| View in Tracker

Status/Resolution/Reason: To Test//Fixed

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

Created: 04/30/2017

Components: Language, Functions

Versions: 2016

Failure Type: Others

Found In Build/Fixed In Build: ? /

Priority/Frequency: Normal /

Locale/System: / Platforms All

Vote Count: 1

This is an edge case, an I'm raising it for completeness only.

You've gone out of your way to implement a duplicate member function for all native CFML types... except for boolean and numeric. I can't think why one would want these, but equally you've implemented it for strings and datetimes too, also which i cannot see the need for. I guess your exercise was to implement it for ALL types, so if that was what you were trying to do: you should then do it.

I guess there's a usecase where data is being passed through a generic process and it's duplicated as a matter of course. Better to have the function than force the coder to work around these exceptions.

Don't prioritise this one though.

More details @



+1 ...........
Vote by Aaron N.
831 | July 01, 2017 02:04:27 AM GMT
We have had a discussion on this and most of the functions have already been supported for numeric types, the duplicate function for numeric might not make sense as we can assign var = num1 rather than var=num1.duplicate(). Feel free to open if you feel there are legitimate functions that are required and haven't been implemented
Comment by Ashudeep S.
30681 | May 02, 2019 11:17:50 AM GMT