[Prev][Next][Index][Thread]

Re: methods on make



Also think "singleton"-pattern (from the Gang of
Four). \make would store the singleton instance in an
(unexported) global and pass it back next time.

	Gabor


--- Scott Ribe <scott_ribe@killerbytes.com> wrote:
> On Tue, May 8, 2001, Roman Budzianowski
> <Roman.Budzianowski@oracle.com> wrote:
> 
> >What problem are you trying to solve ? If we assume
> that only one
> >implementation
> >can be active at one time (a reasonable assumption)
> the just reloading
> the new
> >method will replace it, thus replacing an
> implementation.
> 
> No, I'm not assuming that at all; that's the point,
> that there can be
> multiple concrete classes and that make on the
> abstract base classes can
> choose between them at runtime. Think various
> "factory patterns".
> 
> 
> Scott Ribe
> scott_ribe@killerbytes.com
> http://www.killerbytes.com/
> (303) 665-7007 voice
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/


Follow-Ups: References: