Status/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)
Created: 10/15/2012
Components: Language
Versions: 10.0
Failure Type: Enhancement Request
Found In Build/Fixed In Build: Final / latest build
Priority/Frequency: Trivial / Unknown
Locale/System: English / Platforms All
Vote Count: 10
G'day
It'd be good of CF could have anonymous function blocks as per Javascript, eg:
{code:java}
(
function(message){
var uppered = message.toUpperCase();
document.write("Inside: "+ uppered + "<br />");
}
)("Hello World");
{code}
See blog article for more discussion: http://adamcameroncoldfusion.blogspot.co.uk/2012/09/callbacks-function-expressions.html
Cheers.
--
Adam
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3346435
External Customer Info:
External Company:
External Customer Name: Adam Cameron.
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: