jeff_mccombs_47
Aug 05, 2009Nimbostratus
when EVENT "chaining" and variable scope.
If you do something like:
when HTTP_REQUEST priority 1 {
set somevar "somevalue"
}
Is the variable accessable in other HTTP_REQUEST event blocks with a higher priority?
does that make sense? Does the Tcl interp "chain" events together, executing each event independently in a seperate namespace in order of priority, or does it concatenate them all and execute them under the same namespace?
Obviously, local variables set in each event probably aren't transferrable - that is, I can't access $somevar under a HTTP_RESPONSE event unless it was global when it was declared. But events of the same type fired sequentially.. what happens then?