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,2843c5eea3415584 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!prodigy.com!in.100proofnews.com!in.100proofnews.com!tiscali!newsfeed1.ip.tiscali.net!feed.news.tiscali.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: APQ Date: Wed, 22 Dec 2004 19:23:38 +0100 Organization: None Message-ID: <1517197.1DP6EXDm4E@linux1.krischik.com> References: <1297625.Y25m4Ds50U@linux1.krischik.com> <1qdghglptbxd0.4agztqguu8nm.dlg@40tude.net> <2737240.Ctorkcd9f4@linux1.krischik.com> Reply-To: martin@krischik.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1103740429 00 12754 4vXZrYM1T5V5K+7 041222 18:33:49 X-Complaints-To: usenet-abuse@t-online.de X-ID: GJxz1MZaYeQ4rUF2olagaBJprZyvoE090taj2ZIaRTaOC7DwdQ9qYS User-Agent: KNode/0.8.0 Xref: g2news1.google.com comp.lang.ada:7176 Date: 2004-12-22T19:23:38+01:00 List-Id: Dmitry A. Kazakov wrote: > On Wed, 22 Dec 2004 17:53:14 +0100, Martin Krischik wrote: > >> Dmitry A. Kazakov wrote: >> >>> On Wed, 22 Dec 2004 11:07:44 +0100, Martin Krischik wrote: >>> >>>> Warren W. Gay VE3WWG wrote: >>>> >>>>> I can't imagine it making a practical difference here, but >>>>> perhaps I lack imagination on this point. >>>> >>>> >> http://en.wikibooks.org/wiki/Programming:Ada:Types:access#access_vs._access_all >>> >>> Pool-specific access types do not do well: >>> >>> 1. Upcast/downcast conversions do not work. You'll need >>> Unchecked_Conversion of pointers. It is nasty and dangerous. >>> >>> 2. '[Unchecked_]Access does not work (otherwise, (1) would be a minor >>> problem). >>> >>> 3. Rosen's trick does not work. Very bad. Move it to Initialize? That >>> won't work either, because of 2. >>> >>> 4. Construction/destruction is headache. Wished to insert a newly >>> created object into a list? Not from Initialize! To delete it from there >>> upon destruction? Nay! >>> >>> 5. Access discriminants cannot be pool-specific. Converting to general >>> access to specific one is again an Unchecked_Conversion of worst kind. >>> >>> 6. There is no way to restrict objects allocations to a definite set of >>> pools. "type X (<>) is ..." does not count. >>> >>> In general, I think that the issue should be thoroughly reworked. >> >> Well, ist wiki. Klick on [edit] and make your point. It OK by me - >> actually it is he hole point of wiki: incremental impovement. > > Of what? Is wiki =ARG or else [edit button] = AI? (:-)) I thought you mean that the wiki tutorial "Programming:Ada" need some reworking as it states the disadvantages of Pool-specific access not clear enough. As for ARG and the AI - well I guess you know the procedure - if not I can tell you :-) . With Regards Martin. -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com