DW, ok thank you!
Matthew, but saying that the M2 components are singletons in the
Application scope is further evidence that everything -in- those
components should very much be var scoped, and I think that the
statement "so each thread has it's own
instance" is false because these are singletons.
I appreciate the input guys, though I am no 100% convinced. I guess a
simple test case would prove once and for all.
Here is what I did.
<cfset MACHII_CONFIG_MODE = -1 />
In my view, I have
<cfset myvar = RandRange(1,100)>
<cfset sleep(5000)>
#myvar#
I started one page thread, as it was running (sleeping) I started the
other. If var scoping would have been required, then I think that the
final outputted values should have been identical on both requests
(race condition) but in fact, the values were different.
So, it looks like you guys are correct, and var scoping is NOT
required in your views. Thanks! Helps me sleep a bit better.
-Brian