Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!zaphod.mps.ohio-state.edu!samsung!uunet!cimshop!davidm From: cimshop!davidm@uunet.UU.NET (David S. Masterson) Newsgroups: comp.lang.c++ Subject: Re: Angry new C++ programmer: GENERIC CODE? Message-ID: Date: 27 Nov 90 01:21:06 GMT References: <6907@plains.NoDak.edu> Sender: davidm@cimshop.UUCP Distribution: comp Organization: Consilium Inc., Mountain View, California. Lines: 23 In-reply-to: jmork@plains.NoDak.edu's message of 24 Nov 90 00:20:10 GMT X-Posting-Software: GNUS 3.12 [ NNTP-based News Reader for GNU Emacs ] >>>>> On 24 Nov 90 00:20:10 GMT, jmork@plains.NoDak.edu (James Mork) said: James> I am still digging my way into C++ but I am angry to find no James> facilities for generic code--as in Ada. Can you do this? Why didn't James> they put this in? Check the definitions in , if its available on your setup. Also look at the definitions of the "template" keyword, again if its available on your setup. In effect, pre-C++ 2.0 did not have built-in support for generic objects. It relied on the capabilities of CPP to provide what was necessary (see and Tony Hansen's book for examples). C++ 2.0 introduced the keyword "template" for generic object definitions. I haven't had the chance to use it yet, though. -- ==================================================================== David Masterson Consilium, Inc. (415) 691-6311 640 Clyde Ct. uunet!cimshop!davidm Mtn. View, CA 94043 ==================================================================== "If someone thinks they know what I said, then I didn't say it!"