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-19 06:13:17 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: <1oyW9.13215$V75.2909@nwrddc02.gnilink.net> Date: Sun, 19 Jan 2003 14:13:17 GMT NNTP-Posting-Host: 162.83.247.163 X-Complaints-To: abuse@verizon.net X-Trace: nwrddc02.gnilink.net 1042985597 162.83.247.163 (Sun, 19 Jan 2003 09:13:17 H�) NNTP-Posting-Date: Sun, 19 Jan 2003 09:13:17 H� Xref: archiver1.google.com comp.lang.ada:33206 Date: 2003-01-19T14:13:17+00:00 List-Id: Dmitry A. Kazakov wrote: > Here generics or built-in container types are the only options. Well, yes, that's what we've been trying to tell you :-) > Anyway array types solve this for one particular case without generics. Well, the genericity is there, it's just that the compiler does it for you without you having to specify it yourself. > Maybe, there is a more general way to deal with the containers of > all kinds without generics. I do not know. The way it's handled in Java is to hide away the container inside a class, then cut-and-paste code that does a cast to the desired type whenever an object is extracted from the container. Horrible.