tracker issue : CF-3197154

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

Constants in Coldfusion

| View in Tracker

Status/Resolution/Reason: Closed/Deferred/EnhancementRequired

Reporter/Name(from Bugbase): Stéphane Chauvin / Stéphane Chauvin (Stéphane Chauvin)

Created: 05/23/2012

Components: Language

Versions: 10.0

Failure Type: Enhancement Request

Found In Build/Fixed In Build: Final /

Priority/Frequency: Trivial / Unknown

Locale/System: English / Platforms All

Vote Count: 6

It would be great if we could declare constants in Coldfusion, as it is available in Java or ActionScript.

It would actually be helpfull in many situations, first of all obviously to be sure that a constant (for now declared as a coldfusion variable) is not modified somewhere in the code of a coldfusion application.

Another example: the use of litteral values is today mandatory with cfswitch / cfcase... It would be great to be able to use named constants here.

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

Watson Bug ID:	3197154

External Customer Info:
External Company:  
External Customer Name: Stephane Chauvin
External Customer Email:

Attachments:

Comments:

This would be great, we sometime need constants ! Thanks :)
Vote by External U.
19263 | May 24, 2012 02:54:11 AM GMT
In many ways, it would be very helpfull. Thanks in advance
Vote by External U.
19264 | May 24, 2012 02:55:43 AM GMT
yes, helpfull, for instance to avoid javacasting
Vote by External U.
19265 | May 24, 2012 03:32:10 AM GMT
+1. Would definitely be useful. We work around this with code-style and business rules, but that's a fairly rubbish way of effecting this functionality. -- Adam
Vote by External U.
19266 | May 28, 2012 01:03:48 AM GMT
Obviously useful, why is this closed?
Vote by External U.
19267 | September 10, 2013 03:31:30 PM GMT