tracker issue : CF-3712122

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

Member functions cannot be called on literals

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

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

Created: 02/22/2014

Components: Language

Versions: 11.0

Failure Type: Enhancement Request

Found In Build/Fixed In Build: PublicBeta / 2018,0,0,305014

Priority/Frequency: Trivial / Unknown

Locale/System: English / Platforms All

Vote Count: 7

This should work:

"lowercase".ucase()

It currently doesn't.

-- 
Adam

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

Watson Bug ID:	3712122

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

Attachments:

Comments:

Totally agree with this, it does not make sense to not be able to call member functions on literals!.
Vote by External U.
13350 | February 25, 2014 09:15:25 AM GMT
Why would this be deferred, literal additions is essential, it's like building this half way again.
Vote by External U.
13351 | April 04, 2014 06:46:49 PM GMT
01110110 01101111 01110100 01100101 00101011 00101011
Vote by External U.
13352 | July 01, 2015 03:06:46 AM GMT
Railo/Lucee allow this. ACF should allow it too. Many other languages also allow member functions to be called on literals -- including Java!
Vote by External U.
13353 | October 29, 2015 11:49:39 PM GMT
+1 ......................
Vote by External U.
13354 | December 05, 2015 02:15:47 AM GMT
Why defered?
Comment by External U.
13348 | February 27, 2016 12:24:37 AM GMT
If yer not gonna do anything about it for now, just *leave it open*.
Comment by External U.
13349 | February 27, 2016 01:48:06 AM GMT
Hi Adobe, Are you only fixing this for string literals, or also for struct and array literals? The title of this ticket is "Member functions cannot be called on literals", so should include any literal. Can you please clarify so that we know what to expect? Or if we need to file a separate ticket for each literal type? Thanks!, -Aaron
Comment by Aaron N.
27587 | April 10, 2018 09:08:46 PM GMT
Aaron, ColdFusion 2018 will include support for string literals. We will be exploring the possibility of supporting array and struct literals in a future release. -Immanuel
Comment by Immanuel N.
27588 | April 12, 2018 09:11:43 AM GMT
Hi Immanuel, Thanks very much for clarifying! I've logged CF-4202071 for remaining literals (struct/array - and query, if added). Thanks!, -Aaron
Comment by Aaron N.
27589 | April 20, 2018 09:30:02 PM GMT