Instantiating objects in cfc (CF9)
Hi all,
in certain cases it is necessary to me to instantiate objects like this:
<cfcomponent...>
<cfset this.myObj = new myCFC() />
<cffunction...>
some code
</cffunction>
</cfcomponent>
I think to remember that I've read recently that this kind of instantiating isn't recommended. So I just wanted to ask the veterans
about it.
Mostly I use this way in cases where recursion are used so I do not need to reinstantiate the objects with each recursive call of a function.
Thanks in advance
Hurga
