I'm studying blogcfc5 to gain some tips and tricks, and I'm learning a lot (because there's a lot in there).

But the resourceBundle.cfc written by Paul Hastings has got me confused.

I'm seeing a different way to handle cfcs, so I thought I would post a question to the group.

 

First, the "init" function is called "loadResourceBundle", and its returntype="void".

Second, the getResourceBundle method has returntype="struct", and it's last statement is:

<cfreturn resourceBundle>

Why doesn't he make the returntype components.resourceBundle and

<cfreturn this>

 


You are subscribed to cfcdev. To unsubscribe, please follow the instructions at http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

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

Reply via email to