tracker issue : CF-3680177

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

Permit types to be "arrays of [things]"

| View in Tracker

Status/Resolution/Reason: To Fix//

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

Created: 12/05/2013

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: 2

G'day:
See my blog article here:
http://cfmlblog.adamcameron.me/2013/12/railo-supports-array-types.html

Railo supports this:

private any function acceptArrayOfSamples(required Sample[] samples){
	return samples;
}

private Sample[] function returnArrayOfSamples(required array samples){
	return samples;
}

Note that the argument / return types are Sample[]. It also supports this on inbuilt types too, eg: numeric[]. It also works on <cfparam>

It'd be good if ColdFusion did too. I've needed this in the past.

-- 
Adam

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

Watson Bug ID:	3680177

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

Attachments:

Comments:

Arguments and return types can be complex types in cftag notation, however coldfusion bombs when using script type notation. would like to get some unity between script types and tag types.
Vote by External U.
13880 | March 25, 2014 01:18:19 PM GMT
So what's going on with this, Adobe? I raised it three years and two CF versions ago!
Comment by Adam C.
13878 | December 11, 2016 09:35:49 AM GMT
+1 - This would be very useful
Vote by Aaron N.
13881 | December 15, 2016 06:52:52 AM GMT
Adobe, Two questions: 1) Why does the 1st vote comment have no name? But my vote comment shows my name. Is there a glitch there? All vote comments should show the person's name. 2) Also, why does this ticket not show a Date Created date? That's one of those useful bits of info :) Thanks!, -Aaron
Comment by Aaron N.
13879 | December 15, 2016 06:58:29 AM GMT