Question
This scope: was use is it?
I don't get the "this" scope and the many examples
given its use. Maybe I'm using it incorrectly, but it appears that
a variable in this scope (at the top of a CFCOMPONENT) is set upon
each invocation of a component. What use is it to simply overwrite
the variable every time? If anything, there seems to be a
performance penalty.
In the Components section of the developers guide there is the implication that "this" variables are comparable to instance variables in a class. However, they are overwritten each time an instance is invoked.
The "variables" scope seem to act more like proper instance variables, but they are private. So one would have to write accessors (get/set) for each.
The bottom line is that "this" is not properly described in the documentation.