comp.lang.ada
 help / color / mirror / Atom feed
From: Jere <jere.groups@gmail.com>
Subject: Re: I'm facing an issue with: call to abstract procedure must be dispatching
Date: Wed, 9 Dec 2015 07:33:41 -0800 (PST)
Date: 2015-12-09T07:33:41-08:00	[thread overview]
Message-ID: <99fe2106-3038-4513-bb67-5125618219ba@googlegroups.com> (raw)
In-Reply-To: <n49b9t$41r$1@dont-email.me>

On Wednesday, December 9, 2015 at 8:48:02 AM UTC-5, G.B. wrote:
> On 09.12.15 14:40, Jere wrote:
> > A class with only static members and static methods.
> 
> A file will do, in both C++ and in C.
> Ada does not have file scope, but does
> have packages, so the names are full names.

In C that's really all one can do.  In C++ one prefers not to do it using file scope as that just pollutes the global namespace.  The preference is always to use either a namespace or class to wrap members and data.  Also, one cannot get protected (c++ meaning) static methods or members using just file scope.  While that is somewhat limited in use, it does have its benefits in some designs.  The big reason is not to put all of one's stuff into the global namespace.  Then it ends up forcing one to leave behind some meaningful names in order to not clash with another item of the same signature.

Regardless, the Ada package way is much cleaner and nicer.

  reply	other threads:[~2015-12-09 15:33 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-08 16:45 I'm facing an issue with: call to abstract procedure must be dispatching Serge Robyns
2015-12-08 16:59 ` G.B.
2015-12-08 17:04 ` Dmitry A. Kazakov
2015-12-08 17:24   ` Serge Robyns
2015-12-08 17:42     ` Dmitry A. Kazakov
2015-12-08 18:00       ` Serge Robyns
2015-12-08 18:22         ` Dmitry A. Kazakov
2015-12-08 20:21           ` Serge Robyns
2015-12-08 21:08             ` Dmitry A. Kazakov
2015-12-08 21:55               ` Serge Robyns
2015-12-08 22:43                 ` Serge Robyns
2015-12-08 22:55                   ` Jeffrey R. Carter
2015-12-09 23:03                     ` Randy Brukardt
2015-12-10  8:38                       ` Serge Robyns
2015-12-10 23:43                         ` Randy Brukardt
2015-12-09  8:48                 ` Dmitry A. Kazakov
2015-12-09 10:53               ` G.B.
2015-12-09 12:03                 ` Dmitry A. Kazakov
2015-12-09 13:42                   ` G.B.
2015-12-09 14:23                     ` Dmitry A. Kazakov
2015-12-08 22:55             ` Jeffrey R. Carter
2015-12-08 23:04               ` Serge Robyns
2015-12-08 23:42                 ` Jeffrey R. Carter
2015-12-09 13:40                 ` Jere
2015-12-09 13:48                   ` G.B.
2015-12-09 15:33                     ` Jere [this message]
2015-12-13 21:37                 ` Shark8
2015-12-14  2:20                   ` Jeffrey R. Carter
2015-12-15  7:26                     ` Shark8
2015-12-08 17:30 ` Jeffrey R. Carter
2015-12-08 17:48   ` Serge Robyns
2015-12-08 18:46     ` Jeffrey R. Carter
2015-12-08 20:28       ` Serge Robyns
2015-12-08 22:20     ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox