On Monday, Sep 30, 2002, at 09:23 US/Pacific, S. Isaac Dealey wrote:
> Question: (dunno if anyone has the answer to this) Do CFC's share 
> methods in
> memory, or does each new component created have its own instances of 
> all the
> functions defined in the cfc which take up their own space in memory? 
> The
> one way saves memory, the other way theoretically might allow you to 
> modify
> a method of one component on the fly without altering the definition 
> of the
> CFC.

Each instance has a public data member which is the 'pointer' to the 
function but the actual function code is shared between all instances. 
What that means is if you have a CFC with 20 public methods, then each 
instance will contain 20 'pointers' to that code.

An Architect's View -- http://www.corfield.org/blog/

Macromedia DevCon 2002, October 27-30, Orlando, Florida
Architecting a New Internet Experience
Register today at http://www.macromedia.com/go/devcon2002

______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to