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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!out03b.usenetserver.com!news.usenetserver.com!in04.usenetserver.com!news.usenetserver.com!news.mailgate.org!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!newsfeed01.chello.at!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Generic Package Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1177539306.952515.222940@s33g2000prh.googlegroups.com> <1177601484.444701.171560@r35g2000prh.googlegroups.com> <9eejm6rqip.fsf@hod.lan.m-e-leypold.de> Date: Sat, 28 Apr 2007 19:35:18 +0200 Message-ID: <19qllkvm6ut42$.1iqo74vjgmsrv$.dlg@40tude.net> NNTP-Posting-Date: 28 Apr 2007 19:35:02 CEST NNTP-Posting-Host: 7cc90b6a.newsspool4.arcor-online.net X-Trace: DXC=LMIOCSnN^mV5TOT9_N5i On Fri, 27 Apr 2007 13:43:58 +0200, Markus E Leypold wrote: > "Dmitry A. Kazakov" writes: > >> On Thu, 26 Apr 2007 22:52:58 +0100, Simon Wright wrote: >> >>> "Dmitry A. Kazakov" writes: >>> >>>> You cannot iterate a relational table, because there is no order >>>> defined on it. >>> >>> Why would that stop me iterating over all the rows? >> >> Because iterating presumes following an order. If there is no *any* order, >> which one would you follow? > > None. Iteration gives the values in a certain sequence, "Sequence" is defined as an ordered [and countable] set. >> It is clear that we could enumerate anything on >> a real computer, but that would be same as Unchecked_Conversion, it would >> break the abstraction. > > So I'm having an unchecked operation if I enumerate elements of a set > (sets are unordered). How embarrasing. Yes, because that set is a representation [model] of some other [domain space] set which could be fundamentally unordered and/or uncountable. As an example consider merits of the loop: for X in 0.0..1.0 loop Fortunately the above is illegal in Ada. Not because it were impossible: declare X : Float := 0.0; begin while X <= 1.0 loop ... X := Float'Succ (X); end loop; but because it is a mess. After interating reals we could proceed to complex numbers... -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de