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,a3736685ef876ab2 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!news.tiscali.de!newsfeed.freenet.de!newsfeed2.scan-plus.net!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Newsgroups: comp.lang.ada Subject: Re: OO Style with Ada Containers From: Georg Bauhaus In-Reply-To: References: <1195082906.420079.195000@d55g2000hsg.googlegroups.com> <1s27rv0gt4ujj$.3e2k326rp54d.dlg@40tude.net> <60e46dc9-d8ca-4f47-9e8a-f90a7d45e752@w28g2000hsf.googlegroups.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1195561012.6450.18.camel@kartoffel> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Date: Tue, 20 Nov 2007 13:16:52 +0100 Organization: Arcor NNTP-Posting-Date: 20 Nov 2007 13:16:52 CET NNTP-Posting-Host: b67a9815.newsspool4.arcor-online.net X-Trace: DXC=Xf3F2NNo5a5RLigj];iP=84IUK2YH]6>V0`c35=kbmW`a1fG7C`2T@AUZfC;OT7CRBSfiO6 X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:18526 Date: 2007-11-20T13:16:52+01:00 List-Id: On Tue, 2007-11-20 at 10:06 +0100, Dmitry A. Kazakov wrote: > On Mon, 19 Nov 2007 12:45:12 -0800 (PST), Maciej Sobczak wrote: > > 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. > > This is a totally wrong analogy with many more things assumed, than just a > container. Technically, you need none of the predefined container objects. Formalistically, you might construe a notion of container capturing the fact that a generator needs to exist somewhere. But so what. But what is wrong with just giving the generator an iteration interface? (I think Matt has dropped a word or two about this.)