From: stefan-lucks@see-the.signature
Subject: Re: overriding in private part
Date: Sun, 5 Oct 2008 13:46:24 +0200
Date: 2008-10-05T13:46:24+02:00 [thread overview]
Message-ID: <Pine.LNX.4.64.0810051338500.7900@medsec1.medien.uni-weimar.de> (raw)
In-Reply-To: <wcc4p3sjg7b.fsf@shell01.TheWorld.com>
On Sat, 4 Oct 2008, Robert A Duff wrote:
> If you use a compiler that warns on missing "overriding", then you don't
> need to say "not overriding", because that's the default -- any
> subprogram that doesn't say "overriding" is not overriding.
> Saying "not overriding" is just noise.
"If you use a compiler that [does the right thing]" (or rather, if you use
that compiler and the right set compiler switches) that works more or less
fine. Except that you get only a warning on something that ought to be
treated as an error. (Yes, I know that gnat has a switch to treat warnings
as errors.)
But a compiler-agnostic way to enforce the proper behaviour (overriding
indicators for all the subprograms which actually override another
subprogram) would be preferable, IMHO. I wish there was an Ada 05
"pragma Overriding_Indicators_For_All_Oriding_Subprograms"
or the like. Or did I overlook something like that in the standard?
So long
Stefan
--
------ Stefan Lucks -- Bauhaus-University Weimar -- Germany ------
Stefan dot Lucks at uni minus weimar dot de
------ I love the taste of Cryptanalysis in the morning! ------
next prev parent reply other threads:[~2008-10-05 11:46 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-02 15:49 overriding in private part Maxim Reznik
2008-10-02 16:42 ` Adam Beneschan
2008-10-03 8:52 ` Dmitry A. Kazakov
2008-10-03 15:54 ` Adam Beneschan
2008-10-03 20:29 ` Robert A Duff
2008-10-04 2:28 ` Randy Brukardt
2008-10-04 19:47 ` Robert A Duff
2008-10-05 7:35 ` Dmitry A. Kazakov
2008-10-05 19:57 ` Robert A Duff
2008-10-06 8:50 ` Dmitry A. Kazakov
2008-10-06 23:32 ` Randy Brukardt
2008-10-05 11:46 ` stefan-lucks [this message]
2008-10-05 20:08 ` Robert A Duff
2008-10-06 23:39 ` Randy Brukardt
2008-10-02 23:17 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox