From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: ada and final/sealed classes
Date: Mon, 18 Oct 2004 09:46:37 +0200
Date: 2004-10-18T09:46:37+02:00 [thread overview]
Message-ID: <7531695.ryEFpajBzQ@linux1.krischik.com> (raw)
In-Reply-To: 1c2f5137.0410130438.3ea08553@posting.google.com
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
prev parent reply other threads:[~2004-10-18 7:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1c2f5137.0410130438.3ea08553@posting.google.com>
2004-10-13 13:31 ` ada and final/sealed classes Dmitry A. Kazakov
2004-10-17 15:36 ` Matthew Heaney
2004-10-18 0:20 ` Brian May
2004-10-18 7:46 ` Martin Krischik [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox