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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1dd28d5040ded1f8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-08 15:00:50 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dennison@telepath.com (Ted Dennison) Newsgroups: comp.lang.ada Subject: Re: Announce: Grace project site operational Date: 8 May 2002 15:00:49 -0700 Organization: http://groups.google.com/ Message-ID: <4519e058.0205081400.58283a90@posting.google.com> References: <3CD88FBD.4070706@telepath.com> <3CD91E31.1060004@telepath.com> <3CD94E63.3050607@mail.com> NNTP-Posting-Host: 65.115.221.98 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1020895250 27502 127.0.0.1 (8 May 2002 22:00:50 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 8 May 2002 22:00:50 GMT Xref: archiver1.google.com comp.lang.ada:23740 Date: 2002-05-08T22:00:50+00:00 List-Id: Hyman Rosen wrote in message news:<3CD94E63.3050607@mail.com>... > In one of those long philosophy threads (I think it's the strong > typing one), someone said that one of Ada's strengths is that you That completly explains why I missed it. :-) > can have separate types for counting separate things, so that you > cannot accidentally mix up the counts. He referred to counting > apples and counting apple cart pushers. So if this is considered OK. > important, then the container generics ought to have a count type > parameter for counting how many members they have. Otherwise, if I'd say that's a bit of a stretch. In my code I find "count types" most useful as array indices (something you *really* don't want to mix). With the list package there's no direct indexing (currently), so I really couldn't see myself ever making good use of such a complication. About the best place for this argument is with the array types that the lists are convertable into. I think that argument had been made by someone, but making the array index types a generic parameter was deemed a bit too heavy for improving something that is almost anticillary to the package already. But this issue could be always revisited. Take a look at the package spec in CVS and see what you think. I may add some AdaBrowse - generated pages to the website somtime later, time permitting. -- T.E.D. Home - mailto:dennison@telepath.com (Yahoo: Ted_Dennison) Homepage - http://www.telepath.com/dennison/Ted/TED.html