I also prefer doing it in the init() for two reasons. First, because it
would be with other statements that use it - like variables.instance.UserID
= arguments.UserID. So it makes sense to me to keep them together. Second, I
like to rely on init() as my primary point of instantiation. Why have 2
init()'s so to speak.
Good luck,
Baz


On Fri, Sep 5, 2008 at 9:45 AM, aliaspooryorik <[EMAIL PROTECTED]>wrote:

>
> Hi everyone, just curious to know if people choose to do:
>
> <cfcomponent>
>  <cffunction name="init">
>    ...
>    <cfset variables.instance = StructNew() />
>  </cffunction>
> </cfcomponent>
>
> or
>
> <cfcomponent>
>  <cfset variables.instance = StructNew() />
>  <cffunction name="init">
>    ...
>  </cffunction>
> </cfcomponent>
>
> also if you define a abstract class to you only set up the
> variables.instance scope in the concrete class.
>
> Thanks :)
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CFCDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to