Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!uunet!tdatirv!sarima From: sarima@tdatirv.UUCP (Stanley Friesen) Newsgroups: comp.lang.c++ Subject: Re: Templates (again) Message-ID: <49@tdatirv.UUCP> Date: 18 Jun 91 19:43:04 GMT Article-I.D.: tdatirv.49 References: <1991Jun16.173916.143@and.cs.liv.ac.uk> Reply-To: sarima@tdatirv.UUCP (Stanley Friesen) Organization: Teradata Corp., Irvine Lines: 26 In article <1991Jun16.173916.143@and.cs.liv.ac.uk> markr@and.cs.liv.ac.uk writes: > >I notice recently there has been a lot of talk of templates on this group. I >don't know much about the situation, and would like to ask:- > >* are templates part of a standard for C++, or just a proposal? They are part of the proposed standard. (The committee is firm on this). >* do any compilers support them yet? I am not sure, the latest version of cfront from ATT has added one of exception handling or templates (but I do not remember which). Also, I have heard that at least one specialty C++ compiler has an implementation. >* when they are supported, how efficient will they be in terms of > avoiding code duplication? Will it be necessary to define a general > base class and use templates for type-specific derived classes? > (eg. template class Set : public GenericSet {...}) This will be implementation dependent. As I understand it most currently proposed implementations rather tend towards duplicate code. -- --------------- uunet!tdatirv!sarima (Stanley Friesen)