Learning as I go, Sean. Trying to leverage teaching myself new 
techniques and meeting project deadlines.  Thanks again.

Mark Kecko
Technology Director
MediaPost Communications
[EMAIL PROTECTED]
212-204-2002

Sean Corfield wrote:
> On 4/15/05, Mark Kecko <[EMAIL PROTECTED]> wrote:
> 
>>If I use the variables scope as suggested below, without the "instance =
>>structNew();" how to I pass back the structure using cfreturn at the
>>bottom of my function?  I tried <cfreturn this> and was unsuccessful.
> 
> 
> Best practice suggests that init() return this and that the
> returntype= specify the name of the component (so you pass back the
> component itself, not a struct containing the CFC's data).
> 
> Why would you pass back private data like that? It breaks encapsulation.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

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

Reply via email to