tracker issue : CF-3701698

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

Array subscript

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/

Reporter/Name(from Bugbase): Elijah Steeber / Elijah Steeber (elijahsteeberdude)

Created: 01/30/2014

Components: Performance

Versions: 10.0

Failure Type: Usability Issue

Found In Build/Fixed In Build: Public Beta /

Priority/Frequency: Major / All users will encounter

Locale/System: English / Windows 7 64-bit

Vote Count: 0

Problem Description: When using arrays, the subscript start at [1]. Every other programming language on earth starts at [0]. Please change this.

Steps to Reproduce:

Actual Result:

Expected Result:

Any Workarounds:

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

Watson Bug ID:	3701698

External Customer Info:
External Company:  
External Customer Name: elijahsteeberdude
External Customer Email:  
External Test Config:

Attachments:

Comments:

we cant make such fundamental change to the language as it would break all the applications.
Comment by Rupesh K.
13546 | January 31, 2014 12:37:48 AM GMT
Not all languages start their array index at 0. Granted most do, but not all. That said, it's an anachronistic approach to the issue at hand anyhow. CFML gets this right, IMO: http://cfmlblog.adamcameron.me/2012/07/why-do-coldfusion-arrays-start-at-1.html -- Adam
Comment by External U.
13547 | February 05, 2014 06:31:38 PM GMT