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,29d8139471e3f53e X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Preventing type extensions Date: Sun, 12 Sep 2010 13:59:40 +0200 Organization: A noiseless patient Spider Message-ID: <874odv9npv.fsf@ludovic-brenta.org> References: <87iq2bfenl.fsf@mid.deneb.enyo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Sun, 12 Sep 2010 11:59:40 +0000 (UTC) Injection-Info: mx03.eternal-september.org; posting-host="Bi/1OaZtGMHkWvUHWEpqDQ"; logging-data="28647"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18LpYWdSsrFrcmZlplu3AMB" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:28nSa3O8rjY6ET8TiEcTSADgC1M= sha1:xZ3j6dZwhiUchZp5DjXgsKm4iQI= Xref: g2news1.google.com comp.lang.ada:14024 Date: 2010-09-12T13:59:40+02:00 List-Id: Florian Weimer writes on comp.lang.ada: > Suppose I've got a tagged type. I want to expose the fact that it is > a tagged type outside its package, but want to prevent type extensons. > (In short, I'm interested in something like final classes in Java or > C++0X.) I think the way to do this is to hide the fact that the type is tagged :/ Why do you want to make the type publicly tagged if not to allow type extension? -- Ludovic Brenta.