ElKlaaso
Member since Feb 10, 2011
- Profile: /members/7773-elklaaso.htm
- Comments: 3
Recent Blog Comments By ElKlaaso
-
An Experiment In Passing Variables Into A CFThread Tag By Reference
Posted on Oct 25, 2012 at 7:22 PM
This one works: <cfset var tunnel = {}> <cfset tunnel.set = createObject("java","java.util.HashSet").init()> <cfset tunnel.set.add(local)> <cfthread name="somethread" action="run" tunnel="#tunnel#"> <cfset superLocal =a... read more »
-
An Experiment In Passing Variables Into A CFThread Tag By Reference
Posted on Oct 25, 2012 at 5:27 PM
Hi, This is not a solution for passing the local scope. But i think most often you can make shared data instance data. But what i often do in javascript when i pass a function to another function to be called later is this (pseudo) var that = this; f1(f2{that.whatever=1}); Do let a thread be abl... read more »
-
ColdFusion CreateObject() vs. Java NewInstance()
Posted on Feb 10, 2011 at 8:40 AM
There might be 2 things making that the test results are not faster for newInstance: - the newInstance method is called on a java proxy. Which might wrap the new instance anyway, just like createobject. - The random name adding could be slower then creating objects, therefore it could mask the spe... read more »