portal entry

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

Closures in ColdFusion Tags

| View in Portal
July 12, 2018 08:38:05 AM GMT
0 Comments
<p>A Closure is an inner function that has access to outer function’s variables. Closures were earlier supported only in cfscript , now we have extended the functionality to support Closures in ColdFusion Tags as well. So now one can easily invoke Closures in ColdFusion Tags. Some of the code-snippets for using this feature are as follows: <cfset myarray=[ {name="Thomas", age="22"}, {name="Zaza", age="36"}, {name="Novak", age="136"}, {name="Marin", age="361"}, {name="Rafa", age="3"}, {name="$bl0091@", age="-23"} ]> <!--- define closure function ---> <cfset closure=function (e1,e2){ return […]</p>
<p>The post <a rel="nofollow" href="https://coldfusion.adobe.com/2018/07/closures-in-coldfusion-tags/">Closures in ColdFusion Tags</a> appeared first on <a rel="nofollow" href="https://coldfusion.adobe.com">ColdFusion</a>.</p>
Labels: Adobe ColdFusion, Adobe ColdFusion 2018, Blog, Uncategorized, closures, coldfusion 2018, tags

Comments: