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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,a3736685ef876ab2 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!s19g2000prg.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: OO Style with Ada Containers Date: Mon, 19 Nov 2007 12:45:12 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <1195082906.420079.195000@d55g2000hsg.googlegroups.com> <1s27rv0gt4ujj$.3e2k326rp54d.dlg@40tude.net> <60e46dc9-d8ca-4f47-9e8a-f90a7d45e752@w28g2000hsf.googlegroups.com> NNTP-Posting-Host: 85.3.98.148 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1195505112 22175 127.0.0.1 (19 Nov 2007 20:45:12 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 19 Nov 2007 20:45:12 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s19g2000prg.googlegroups.com; posting-host=85.3.98.148; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9,gzip(gfe),gzip(gfe) Content-Disposition: inline Xref: g2news1.google.com comp.lang.ada:18511 Date: 2007-11-19T12:45:12-08:00 List-Id: On 19 Lis, 17:19, "Dmitry A. Kazakov" wrote: > > Consider a virtual iterator that does not have > > *any* container behind, but can serve as a sequence generator. And so > > on. > > An iterator always has a container behind (a class of containers actually). > If you generate just a sequence, where do you know the mapping of the > sequence onto the elements of a container? Why should I bother with mapping the sequence onto the container if there is no container? There is no container, only a sequence. > Take 2,4,6,8. Got it! > Why do you think > that it is each second element? This is not each second element. This is a sequence 2,4,6,8 (but it really does not make any difference). Now consider an iterator generating a (samples of) sine wave with given parameters. Infinitely! It plays a sound using attached DAC. There is no container behind. Just a sequence. -- Maciej Sobczak * www.msobczak.com * www.inspirel.com