Right... This is for moving from say... the DB to the screen via a
single method call i.e. thisUser.get(12)
<cfoutput>thisUser.fname</cfoutput>

OR, to be a lot more verbose:

In the case of:
<cfset thisUser = createObject("component","user.cfc").init(12)>
<cfoutput>#thisUser.fName# #thisUser.lName#</cfoutput>
where inside the CFC this.fName = query.fname and this.fName =
query.lName and init(12) is passing the table's pkey value (possibly a
URL variable) of 12 into the arguments and on to the where clause of a
query.

I've got that THIS thing down fine. I guess it's the difference
between private instance data and function-private variables that has
me a little puzzled.

And even at that, I can see why one would choose to use function
private variables for somethings, especially things like loop counters
that need to be trashed as soon as their use is over, or for security,
trashing a piece of private data that shouldn't be kept in memory
"just in case."

Oi, I just realized something else... something like a query that gets
data to populate a CFC needs to be var'd or it'll stay resident in
memory until the server destroys it. So I can see the need to conserve
memory by the judicious use of var...

But still, what does all this have to do with the var keyword and
threadsafe CFCs??

Laterz, all


On Fri, 24 Dec 2004 17:54:04 -0800, Sean Corfield
<[EMAIL PROTECTED]> wrote:
> Hope my comments help?

No Doubt!

> --
> Sean A Corfield -- http://www.corfield.org/
> Team Fusebox -- http://www.fusebox.org/
> Breeze Me! -- http://www.corfield.org/breezeme
> Got Gmail? -- I have 6 invites to give away!
> 
> "If you're not annoying somebody, you're not really alive."
> -- Margaret Atwood

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:188777
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to