From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,103b407e8b68350b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-18 19:42:50 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn13feed!wn11feed!worldnet.att.net!199.45.49.37!cyclone1.gnilink.net!spamfinder.gnilink.net!nwrddc02.gnilink.net.POSTED!53ab2750!not-for-mail From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3a) Gecko/20021210 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Anybody in US using ADA ? One silly idea.. References: <1041908422.928308@master.nyc.kbcfp.com> <1041997309.165001@master.nyc.kbcfp.com> <1042086217.253468@master.nyc.kbcfp.com> <1042477504.547640@master.nyc.kbcfp.com> <1042651417.215661@master.nyc.kbcfp.com> <1042743579.1165@master.nyc.kbcfp.com> <1042824191.538184@master.nyc.kbcfp.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Sun, 19 Jan 2003 03:42:49 GMT NNTP-Posting-Host: 162.83.247.163 X-Complaints-To: abuse@verizon.net X-Trace: nwrddc02.gnilink.net 1042947769 162.83.247.163 (Sat, 18 Jan 2003 22:42:49 EST) NNTP-Posting-Date: Sat, 18 Jan 2003 22:42:49 EST Xref: archiver1.google.com comp.lang.ada:33189 Date: 2003-01-19T03:42:49+00:00 List-Id: Dmitry A. Kazakov wrote: > If not possible, then it is not a case where generics may be applied. My > point is, anywhere generics work, the specific type can be tacked down. That doesn't seem correct to me. With generics, I can declare a container that holds a specific type, and then pas sthat container around to other (generic) routines, and they all know the type of the container's contents. Without generics, all I have is a container that holds some base type. How is the compiler to know that this container holds only a certain specific type of object?