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 Path: buffer2.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: container cursor type cannot be tagged Date: Fri, 29 Aug 2014 09:28:16 +0200 Organization: cbb software GmbH Message-ID: References: <85ppfkxvwg.fsf@stephe-leake.org> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: yj8+JIQUMOEawvIM7K49kA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: number.nntp.dca.giganews.com comp.lang.ada:188722 Date: 2014-08-29T09:28:16+02:00 List-Id: On Thu, 28 Aug 2014 15:25:59 -0500, Randy Brukardt wrote: > If it was me, I'd put a container parameter on every operation (which would > be the prefix), and cursors would work soley like array indexes. Huh, remember our discussion about cursor/iterator being a bad idea? That is another of multiple reasons why. Cursor tend to become a full class with descendants and primitive operations which ends up in multiple dispatch, for whatever reason not available. An index almost always can be a "final" type which makes everything a lot easier. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de