comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: advice on package design
Date: Thu, 17 Mar 2005 17:23:15 -0600
Date: 2005-03-17T17:23:15-06:00	[thread overview]
Message-ID: <ZeSdndSLdoRLjaffRVn-uw@megapath.net> (raw)
In-Reply-To: wccpsxy1i8l.fsf@shell01.TheWorld.com

"Robert A Duff" <bobduff@shell01.TheWorld.com> wrote in message
news:wccpsxy1i8l.fsf@shell01.TheWorld.com...
> "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:
>
> > Presently it is not explicit. Syntactically overriding is
undistinguishable
> > from declaring a new operation. This is IMO bad. It should be sort of:
> >
> > procedure Override (X : Object) is ????;
> >    -- Overriding intended, fails if base types have no primitive
Override
> > procedure Override (X : Object);
> >    -- Overloading intended, fails if it hides any other Override
>
> I think Ada 2005 has something like that.

Yes.

overriding
procedure Override (X : Object);
    -- Overriding intended, fails if base types have no primitive Override

not overriding
procedure Override (X : Object);
    -- Overloading intended, fails if it hides any other Override

Note the suggested indentation. If you have neither, you revert to the Ada
95 rules. That turns out to be necessary in some cases for private types and
for generics.

This would have saved us a lot of headaches constructing Claw.

                      Randy.






      parent reply	other threads:[~2005-03-17 23:23 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-07 16:23 advice on package design spambox
2005-03-07 21:08 ` Dmitry A. Kazakov
2005-03-08 12:48   ` spambox
2005-03-08 17:18     ` Dmitry A. Kazakov
2005-03-12 19:57   ` Robert A Duff
2005-03-12 20:45     ` Dmitry A. Kazakov
2005-03-12 21:59       ` Robert A Duff
2005-03-13  9:23         ` Dmitry A. Kazakov
2005-03-16 20:41           ` Robert A Duff
2005-03-17 10:22             ` Dmitry A. Kazakov
2005-03-17 14:04               ` Robert A Duff
2005-03-17 15:59                 ` Dmitry A. Kazakov
2005-03-17 19:10                   ` Robert A Duff
2005-03-17 19:47                     ` Martin Dowie
2005-03-17 20:55                       ` Robert A Duff
2005-03-17 21:14                         ` Marius Amado Alves
2005-03-18  9:31                           ` Martin Dowie
2005-03-18  9:38                         ` Martin Dowie
2005-03-21 16:19                           ` Robert A Duff
2005-03-17 20:48                     ` Dmitry A. Kazakov
2005-03-17 21:26                       ` Robert A Duff
2005-03-18  3:06                         ` Jared
2005-03-18 10:00                         ` Dmitry A. Kazakov
2005-03-21 16:17                           ` Robert A Duff
2005-03-21 18:16                             ` Dmitry A. Kazakov
2005-03-21 20:35                               ` Robert A Duff
2005-03-22 10:55                                 ` Dmitry A. Kazakov
2005-03-17 23:23                 ` Randy Brukardt [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