Bound Functions - cfml

- 1 min

Following on from the last blog post - we can observe the same behaviour in CFML:

Outputs (on Railo 4.2.1.000 final and ACF 11):


Function says: 5
Function says: 5
Function says: 5
Function says: 5
Function says: 5

Now it looks like there's been some discussion about this (https://issues.jboss.org/browse/RAILO-3099), but I can't follow what was decided upon...

EDIT:

I found on the Railo Google Group how to do this.

The solution isn't particularly pretty, but it works:

Output:

Function says: 0
Function says: 1
Function says: 2
Function says: 3
Function says: 4

Andrew Myers

Andrew Myers

Web Developer

comments powered by Disqus
rss facebook twitter github youtube mail spotify instagram linkedin google pinterest medium vimeo