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,adae40bcc4d01baf X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!feed.xsnews.nl!border-2.ams.xsnews.nl!68.142.88.77.MISMATCH!hwmnpeer03.ams!news.highwinds-media.com!txtfeed2.tudelft.nl!tudelft.nl!txtfeed1.tudelft.nl!feeder3.cambrium.nl!feed.tweaknews.nl!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Ada 95 constructors on limited types References: <08dc2b30-6c8c-4cff-9f2e-c0d4c377972d@i3g2000hsf.googlegroups.com> Date: Sat, 05 Jan 2008 11:32:09 +0100 Message-ID: <874pds36mu.fsf@ludovic-brenta.org> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:XAp2hAk8FQPlM2hpa6yYUu4ozKw= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Tele2 X-Trace: DXC=RTa7PS?RDA_o_LXIbUAeEX6`Y6aWje^YZWO[?IGPj9;[Qe0>=4DdV@P6J;P=XBG>K[B6\]3[d;Cj_ Xref: g2news1.google.com comp.lang.ada:19207 Date: 2008-01-05T11:32:09+01:00 List-Id: Brian May writes: >>>>>> "Jeffrey" == Jeffrey R Carter writes: > > Jeffrey> shaunpatterson@gmail.com wrote: > >> > >> package Parent is > >> > >> type Class is abstract tagged limited null record; > >> type Class_Access is access all Class'Class; > >> > >> end Parent; > > Jeffrey> There's your problem. Don't use public access types. > > Why not? Because they automatically make the package impure for no good reason, thereby preventing use of the package in pure or preelabotated packages. Moral: Declare your access types only if and where you need them. -- Ludovic Brenta.