After reading the thread last week about "Objects versus branch", I went back and read Witango's documentation concerning class files. I want to make sure my class files aren't stepping on themselves (thread safe), so if you don't mind I would like to ask a few more questions.
I couldn't find if class files are cached like taf files when the cache variable is set. I have always assumed they were. Ben talked about treating methods like functions and passing "parameters" back and forth. This leads me to the next 3 questions: Can you create request or user scoped variables within a class file? IE: In effect passing vars back to the calling taf. Can you reference request or user scoped variables within a class file? Can you update request or user scoped variables within a class file? I have assumed that you can reference custom scoped vars within a class file, but that it is not advisable to create or update them. In my applications they are used somewhat like domain scoped vars. Are you supposed to use <@getparam> and <@setparam> to reference and update "named method parameters" or is it ok to use <@var> and <@assign>? If it is ok to use <@var> and <@assign>, why are there <getparam> and <@setparam> tags? If it is not okay to use request scoped vars in a class file, I have the next 2 questions: DB action results are a request scoped variable. Is this ok in a class file? The Counter_Variable in a For Loop action is scoped request. Can they be used in a class file? Thanks for taking the time to respond. Steve Fogelson Internet Commerce Solutions ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
