That's what I've been told as well. Which is why I've never understood why the best practice for init() is to "return this". That scope sounds too broad, imho, since this is more of a "global" scope. Maybe my lightbulb is still off.
<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).
Regards, Sean
----------------------------------------------------------
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]
