> Okay, you got me. I gotta ask. What's with the "this" scope and CFMX 6.0?
> Can you explain further this caveat you added?
CFMX 6.0 did not have "variables" scope in CFCs so all CFCs tended to
use "this" scope to store data. Which is bad because that's a public
scope (so all your data is exposed).
CFMX 6.1 introduced "variables" scope - which behaves much like
protected data in Java - and the best practice these days is to avoid
"this" scope (for all the same reasons that OO programmers everywhere
are taught to avoid public instance data).
So the book has a lot of code examples that use "this" scope instead
of the more correct (in 6.1 onward) "variables" scope.
Does that explain it?
--
Sean A Corfield -- http://www.corfield.org/
Team Fusebox -- http://www.fusebox.org/
Got Gmail? -- I have 2 invites
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

