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,92a5558d9ff5b0f2 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.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: ada and final/sealed classes Date: Mon, 18 Oct 2004 09:46:37 +0200 Organization: AdaCL Message-ID: <7531695.ryEFpajBzQ@linux1.krischik.com> References: <1c2f5137.0410130438.3ea08553@posting.google.com> Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1098086886 03 18187 -MiqXShvhi6GSN4o 041018 08:08:06 X-Complaints-To: usenet-abuse@t-online.de X-ID: T5rc0+ZSrep7o7oaKoC19fkME01g2+Fef2iAQhnOf2vhn+GjhjY8ZB User-Agent: KNode/0.8.0 Xref: g2news1.google.com comp.lang.ada:5389 Date: 2004-10-18T09:46:37+02:00 List-Id: Hans Van den Eynden wrote: > Hallo > > I want to prevent that someone inherits from a type I made (for > security purposes). I am a junior Ada programmer and I know this > possible in Java (final class) and C# (sealed class). Is this also > possible in Ada??? You could hide the tag: package P type T is private; private type T is tagged ...; end P; Of course it does not stop the determinted - since Ada private is C++ protected. With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com