That's nothing more than a public variable that just happens to be an
object.  Like I said before, that's a reasonable use of 'this' but any
design that requires public variables should be carefully considered,
because most of the time, there is a better way to approach things. 
Not in every case, but most of the time.

cheers,
barneyb

On 5/24/05, Barry Beattie <[EMAIL PROTECTED]> wrote:
> In a related thing to what barney does is decorating (composition) of CFC's 
> and drilling down into this extra CFC
> 
> 
> in the init() of "myObject"
> 
>         <cfset this.entityService = createObject("component", 
> "entity.service") />
>         <cfreturn this />
> 
> that way I can get to the "decorating" CFC by
> 
> <cfset myObject.entityService.doSomething() />
> 
> but to be honest, I rarely need to do this...
> 
> my 2c
> barry.b



-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to