tracker issue : CF-4031972

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

Scope look-up order changes depending on whether arguments are defined

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

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

Created: 08/05/2015

Components: Language

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Major / All users will encounter

Locale/System: English / Platforms All

Vote Count: 1

Listed in the version 2016.0.0.297996 Issues Fixed doc
Verification notes: verified_fixed on August 22, 2019 using build 2016.0.01.298513
See this: http://blog.adamcameron.me/2015/08/coldfusion-its-hard-to-maintain-cf-docs.html

TL;DR:
The scope look-up changes depending on whether arguments are defined in the function signature or not.

Contrast:

function f(x){}
f(x=1);

vs:
function f(){}
f(x=1);


This is daft.

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

Watson Bug ID:	4031972

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

Attachments:

Comments:

+1 ......................
Vote by External U.
6358 | August 17, 2015 03:36:24 AM GMT
Fixed for which release?
Comment by External U.
6357 | September 26, 2015 04:36:49 AM GMT
Hi Adobe, I've verified this is fixed in CF2016 Update 1 (build 2016.0.01.298513). Thanks!, -Aaron
Comment by Aaron N.
31151 | August 22, 2019 10:16:54 AM GMT