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=-2.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fa18fb47ddd229a7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-11 08:27:07 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fr.ip.ndsoftware.net!teaser.fr!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: "amado.alves" Newsgroups: comp.lang.ada Subject: RE: Proposed change to BC iterator parameters [limitedness] Date: Thu, 11 Dec 2003 16:24:58 -0000 Organization: Cuivre, Argent, Or Message-ID: NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: melchior.cuivre.fr.eu.org 1071159913 54455 80.67.180.195 (11 Dec 2003 16:25:13 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Thu, 11 Dec 2003 16:25:13 +0000 (UTC) To: Return-Path: X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Proposed change to BC iterator parameters [limitedness] Thread-Index: AcPAALGUKX0KnWDPRBC3B4h9pJP+zwAAFhzL X-OriginalArrivalTime: 11 Dec 2003 16:24:59.0159 (UTC) FILETIME=[521D4270:01C3C003] X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Gateway to the comp.lang.ada Usenet newsgroup List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:3382 Date: 2003-12-11T16:24:58+00:00 << > I think there are (container) libraries that accept limited element > types. And some libs that dont can easily (?) be changed in that > direction. But as I indicated I think it is 'unatural' to store values > of a limited type. For me it does not make sense to put constants in a > container. So my advice can only be: rethink your program. Heh? Limited is not the same thing as constant.>> I think the original poster wanted limited for logical constants. <> Not "perfect" to me ;-) <<*Some* containers require copying to get the data in and out of the container;>> Strictly all containers do. The difference is when. At declaration, at = elaboration, at run time... <<... limited components do not make sense in *that* case. But other containers can deal with limited types just fine. Why do you think Ada allows arrays of tasks?>> I don't know. I would be happy with pointers to tasks or some such. For = uniformity. You can have an array of exceptions ids, but not of = exceptions. <> I can say any object is a container. An uni-elementary one. <<...and tasks are about as limited as you can get!>> Yes, unfortunately.