tracker issue : CF-3041673

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

Bug 83379:Cannot call methods in named arguments inside implicit structs or arrays

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Elliott Sprehn / Elliott Sprehn (Elliott Sprehn)

Created: 06/17/2010

Components: Language, CFSCRIPT

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 / 274653

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 4

Problem:

Cannot call methods in named arguments inside implicit structs or arrays. 
ex.
x = new query();
test( x={y="#x.getName()#"} );
test( x=["#x.getName()#"] );
Method:

<cfscript>x = new query();test( x={y="#x.getName()#"} );test( x=["#x.getName()#"] );</cfscript>Results in: Variable X is undefined.

[vmannebo 6/18/10]:

<cfscript>

	function test(required struct arg){
		writedump(arg);
	}


	function foo(){
		return "hi";
	}

	s.fn = foo;
	//writedump(s.fn());

	//myarg = {y = s.fn()};
	//writedump(myarg);

	test(arg={y=s.fn()});
</cfscript>
Result:

Variable X is undefined.

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

Watson Bug ID:	3041673

External Customer Info:
External Company:  
External Customer Name: Elliott Sprehn
External Customer Email: 202D59C844579997992016B7
External Test Config: 06/17/2010

Attachments:

Comments:

This bug has been voted..
Vote by External U.
22043 | November 11, 2011 12:55:48 AM GMT
This bug has been voted..
Vote by External U.
22044 | November 11, 2011 12:55:50 AM GMT
This bug has been voted..
Vote by External U.
22045 | November 11, 2011 12:55:52 AM GMT
This bug has been voted..
Vote by External U.
22046 | November 11, 2011 12:55:54 AM GMT