tracker issue : CF-4134200

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

toList() member function is missing for Arguments

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/NotABug

Reporter/Name(from Bugbase): Henry Ho / Henry Ho (Henry Ho)

Created: 03/31/2016

Components: Language

Versions: 11.0

Failure Type: Incorrect w/Workaround

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Minor / Few users will encounter

Locale/System: English / Win All

Vote Count: 0

Problem Description:

ArrayToList(arguments) works, but arguments.toList() does not exist.

Steps to Reproduce:

function argList () {
  return arguments.toList();
}

argList(123,456,789);

Actual Result: toList not found
Expected Result:"123,456,789"


Any Workarounds:

use arrayToList(arguments) instead.

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

Watson Bug ID:	4134200

External Customer Info:
External Company:  
External Customer Name: Henry Ho
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

Henry, Argument scope is a struct. A toList member function on struct does not exist. Calling a toList on the Array itself works "return arguments[1].toList(); "
Comment by Immanuel N.
3182 | April 11, 2016 01:42:35 AM GMT
Immanuel, FYI ArrayToList() works on the Arguments scope. So I think these member functions may have a bad future if there are many edge cases that are not supported here and there when the respective older equivalent function works fine.
Comment by External U.
3183 | April 11, 2016 11:52:38 AM GMT