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,229ea0001655d6a2 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!proxad.net!proxad.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Generic Package From: Georg Bauhaus In-Reply-To: <1ieq3io2d6nnq$.13818v3y35gnr.dlg@40tude.net> References: <1177539306.952515.222940@s33g2000prh.googlegroups.com> <1177601484.444701.171560@r35g2000prh.googlegroups.com> <9eejm6rqip.fsf@hod.lan.m-e-leypold.de> <19qllkvm6ut42$.1iqo74vjgmsrv$.dlg@40tude.net> <1177801611.10171.32.camel@localhost.localdomain> <1woad6hn9idy2$.6otnwphc1o0h$.dlg@40tude.net> <1177929029.6111.34.camel@localhost> <1177944533.13970.17.camel@localhost> <2aq08qbvw0ym$.1rquampzo7o53.dlg@40tude.net> <1ieq3io2d6nnq$.13818v3y35gnr.dlg@40tude.net> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: # Message-Id: <1178010142.6695.29.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Date: Tue, 01 May 2007 11:02:22 +0200 NNTP-Posting-Date: 01 May 2007 11:02:22 CEST NNTP-Posting-Host: 14feb7a9.newsspool2.arcor-online.net X-Trace: DXC=RdIg9gQmD0VaAeROF2PWMQA9EHlD;3YcR4Fo<]lROoRQ8kFejVXlCG??NUnm=[_nnHhZUanDU X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:15435 Date: 2007-05-01T11:02:22+02:00 List-Id: On Mon, 2007-04-30 at 22:04 +0200, Dmitry A. Kazakov wrote: > It was that if foreach were a primitive operation > defined on an unordered set, then its contract could not be stated. Every specific Set object (collection of elements) inside a computer has a memory layout. That is, for every specific set object there exists an index set, the collection of addresses that maps elements 1:1 onto a set of pairwise disjoint natural numbers. Since, I think, we are talking about computer representations of sets, the fact of representation (1) establishes some order (2) hence allows arguing about First, ..., Foreach in terms of the general (and specifically unknown) properties of every representation. For every finite set that doesn't fit into core memory, use garbage collection (a job for the librarian you mentioned). Define the element index number via a pair of numbers (time, address). These, again, can be enumerated. > To be able to pick a random member <=> > to have an order. Can you determine whether one of your sets is empty?