Structs can easily be modified.  CFCs, without the setters, cannot
easily be modified.  Sure you can, but not usually accidentally.

Also, the CFCs, will pass around their "logic".  Structures are just
dumb.

You could probably do it either way.  I just like the "feeling" that
CFCs control my data just a bit better than a struct would.

M!ke 

-----Original Message-----
From: Robert Everland III [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 23, 2005 1:21 PM
To: CF-Talk
Subject: Re: Pros/Cons Session vs Client scope

>When a user logs in to your site, you can create a session-based CFC.
>That CFC will hold personal information for that user.  Session-based 
>CFCs are great for any system that requires a login.


Why wouldn't you just create a structure with that information in it? I
don't understand why you would create a CFC for the user information.
Can you explain in more detail.



Bob
 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:225143
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to