Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!uunet!microsoft!jimad From: jimad@microsoft.UUCP (Jim ADCOCK) Newsgroups: comp.lang.c++ Subject: Re: Angry new C++ programmer: GENERIC CODE? Message-ID: <59508@microsoft.UUCP> Date: 3 Dec 90 18:53:10 GMT References: <6907@plains.NoDak.edu> <1990Nov25.055108.2898@Neon.Stanford.EDU> Reply-To: jimad@microsoft.UUCP (Jim ADCOCK) Organization: Microsoft Corp., Redmond WA Lines: 17 In article <6907@plains.NoDak.edu>, jmork@plains.NoDak.edu (James Mork) writes: |> I am still digging my way into C++ but I am angry to find no |> facilities for generic code--as in Ada. Can you do this? Well, if your going to be angry, at least apply your heat in the "right" place! The ANSI-C++ committee has decided that the templates "generic classes" facilities are "in" the C++ language. So now you need to go apply heat to your C++ compiler vendor to get their compilers up to spec. :-) See Ellis & Stroustrup "The Annotated C++ Reference Manual" Addison-Wesley 1990 ISBN 0-201-51459-1 for how templates are suppose to work. To date, most people have been faking template capabilities using the C++ macro preprocessor. A doable, but less than completely satisfactory approach. [ Also note that termination-style exceptions as presented in ARM are also "in" the C++ language now too. ] Brought to you by Super Global Mega Corp .com