> > <cfreturn this /> simply means 'return a reference to this 
> CFC' - it's 
> > the only way you can hand back the object itself. Remember 
> that from 
> > outside a CFC instance, all you see is the "this" scope (which 
> > contains public methods and, heaven forbid, any public variables).
> >
> this is not a reference to the CFC instance. It is simply a 
> scope. It so happens that the scope appears to be the same 
> from outside the CFC instance, but it is certainly not an instance.

Can you think of a case where a Thing returned from createObject will behave
differently from a Thing returned from createObect(...).init() (where init
returns this of course). It certainly seems to act (in every possible way)
the same as a CFC instance, to the point where you can pass it to an
argument where type="the name of the cfc".

-Rc


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

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

Reply via email to