Status/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)
Created: 03/10/2015
Components: Language
Versions: 11.0
Failure Type: Enhancement Request
Found In Build/Fixed In Build: CF11_Final / latest build
Priority/Frequency: Trivial / Unknown
Locale/System: English / Platforms All
Vote Count: 10
http://en.wikipedia.org/wiki/Immediately-invoked_function_expression
This should work in CFML:
{code}
(function(){
writeOutput("hi");
})();
{code}
Where "work" means it outputs hi. This is a very contrived example, but being able to memory space blocks of code is quite handy in other languages, and that CFML has function expressions but NOT IIFEs seems a bit half-implemented.
Also: apologies if this is a duplicate. I am "certain" I've raised this previously, but cannot find it.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3950736
External Customer Info:
External Company:
External Customer Name: Adam
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: