RE: cfcomponent/function inheritence issue?

2005-05-27 Thread Kerry
If you do this: cfset var s = structNew() cfset s = mystruct Then s is not a struct, but a pointer to mystruct, so whenever you set a property of s, you are in fact setting a property of mystruct. Also, personally, theres no way i would do this: cfif NOT isDefined(mystruct)cfset

RE: cfcomponent/function inheritence issue?

2005-05-27 Thread Ben Mueller
Kerry, Thanks for your help. You're certainly right about the duplicate function...and of course I should have known that already. But I'm a little confused about your statement that I shouldn't do this: cfif NOT isDefined(mystruct)cfset this.init()/cfif I could call any function in my

RE: cfcomponent/function inheritence issue?

2005-05-27 Thread Kerry
: cfcomponent/function inheritence issue? Kerry, Thanks for your help. You're certainly right about the duplicate function...and of course I should have known that already. But I'm a little confused about your statement that I shouldn't do this: cfif NOT isDefined(mystruct)cfset this.init()/cfif I could

RE: cfcomponent/function inheritence issue?

2005-05-27 Thread Ben Mueller
Thanks again for the suggestions. Last question, I swear: why do you not like using the cfscript tag at the top of your components? That seems to be the cleanest solution, since you don't have to explicitly call the init function outside of the component. Is there a performance hit to this

RE: cfcomponent/function inheritence issue?

2005-05-27 Thread Dave Watts
Thanks again for the suggestions. Last question, I swear: why do you not like using the cfscript tag at the top of your components? That seems to be the cleanest solution, since you don't have to explicitly call the init function outside of the component. Is there a performance hit to

RE: cfcomponent/function inheritence issue?

2005-05-27 Thread Dave Watts
If you do this: cfset var s = structNew() cfset s = mystruct Then s is not a struct, but a pointer to mystruct, so whenever you set a property of s, you are in fact setting a property of mystruct. There are two things worth pointing out here, I think. The first, trivial, point is that