Actually it would suck really hard if it didn't work like that, since it
would basically make dynamically attaching methods to CFCs worthless! It is
something to be aware of though.
On 10/22/07, Mark Mandel <[EMAIL PROTECTED]> wrote:
>
>
> Well, in the type of place I do method injection - say I have this method:
>
> <cfscript>
> function showValue()
> {
> return instance.value;
> }
> <cfscript>
>
> And I also have 2 CFCs - A, and B
>
> If I go:
>
> A.showValue = showValue;
>
> Then the CFC context of 'showValue' is now the 'A' CFC.. and if I run
> the method, it will return the variable of 'instance.value' within
> that CFC.
>
> Now, if I also go:
>
> B.showValue = showValue;
>
> I can now call B.showValue() and the same thing happens, but the
> context for this instance is the CFC instance 'B'.
>
> Does that make sense?
>
> Mark
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---