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-Thread: 103376,86a457a80a9f4412 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.germany.com!storethat.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Generic Collection From: Georg Bauhaus In-Reply-To: <1178837285.391940.192010@e65g2000hsc.googlegroups.com> References: <1178652593.006083.173150@l77g2000hsb.googlegroups.com> <1178658022.9164.17.camel@kartoffel> <1178661586.585164.191690@e51g2000hsg.googlegroups.com> <1178722277.733981.6200@l77g2000hsb.googlegroups.com> <1178727131.9164.38.camel@kartoffel> <1178736886.994385.37140@y80g2000hsf.googlegroups.com> <1178837285.391940.192010@e65g2000hsc.googlegroups.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: # Message-Id: <1178871050.6451.13.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Date: Fri, 11 May 2007 10:10:51 +0200 NNTP-Posting-Date: 11 May 2007 10:10:51 CEST NNTP-Posting-Host: c06a96a4.newsspool1.arcor-online.net X-Trace: DXC=5mmEjCDoF5h^Y=RbYBPl4`ic==]BZ:afn4Fo<]lROoRaFl8W>\BH3YbWkPUn@1g4BgA:ho7QcPOVcgMAOmdVN:JnG\Pg?QA_;Uk X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:15748 Date: 2007-05-11T10:10:51+02:00 List-Id: On Thu, 2007-05-10 at 15:48 -0700, andrew wrote: > On May 10, 2:31 pm, Simon Wright wrote: > > > So, I'm thinking that many of the "capabilities" or operations I > > > desire of the collection would have to be "dispatching" to the type of > > > the collection object. When is the type of the collection object determined? How? > > Do you want to be able to add attributes to schemas? I would have > > thought not .. This is an important question, if not the important question. I'd try to answer it first. > So I think you are saying I would have one Collection package and it > has three procedures called Add and they operate on three different > types: > Tuple > Table > Schema > but then how do I later use the collection package for some other > purpose? If you want a collection that doesn't collect either Apples or Oranges, but instead is capable of holding Apples, Oranges, Cabbage, Motor_Oil, Whatever, you can have that, too. Is this what you want? > I don't understand why I would have run-time errors. Please expand > that thought. Just think of the consequences of Java pre-1.5 collections delivering nothing but Object objects.