comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Constructors with multiple inheritance
Date: Fri, 30 Sep 2011 12:29:43 -0400
Date: 2011-09-30T12:29:43-04:00	[thread overview]
Message-ID: <wccoby2uh6w.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: 23774546.1654.1317391464047.JavaMail.geo-discussion-forums@yqnk41

"Rego, P." <pvrego@gmail.com> writes:

> Well, the prefixed notation if I understood well was made exactly for
> filling this. For me it's not just sugar, since I use it frequently.

Heh?  "Sugar" doesn't mean "infrequently used".

> I can even cite the Rationale for Ada 2005 pg. 33, "the Ada 95 object
> oriented model has been criticized for not being really OO since the
> notation for applying a subprogram (method) to an object emphasizes
> the subprogram and not the object.".

Yes, it's true that Ada 95 was criticized in that way.
However, I think such criticism was complete nonsense.
Whatever "object oriented" means, surely it doesn't have
anything to do with notation.

It's fine to use the prefix notation if you think it's more readable,
but you shouldn't attach any semantic significance to it -- it really is
just syntactic sugar.

> ...So that's why I try not to use the package.function approach, and
> one of the premisses of using the prefixed notation is "Y is the first
> parameter of Op".

You can't use an operation of an object to create that same object,
because it doesn't exist yet.

- Bob



  reply	other threads:[~2011-09-30 16:29 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-29 19:40 Constructors with multiple inheritance Rego, P.
2011-09-29 20:20 ` Dmitry A. Kazakov
2011-09-30  3:11   ` Rego, P.
2011-09-30  7:36     ` Dmitry A. Kazakov
2011-09-30 14:04       ` Rego, P.
2011-09-30 16:29         ` Robert A Duff [this message]
2011-09-30 19:14           ` Rego, P.
2011-09-30 16:42         ` Dmitry A. Kazakov
2011-09-30 19:42           ` Rego, P.
2011-10-06 12:46             ` Julian Leyh
2011-11-09  2:24           ` Rego, P.
2011-11-09  8:39             ` Dmitry A. Kazakov
2011-11-10  3:47               ` Rego, P.
2011-11-10  7:09                 ` AdaMagica
2011-11-10  7:20                   ` AdaMagica
2011-11-10  8:35                   ` Dmitry A. Kazakov
2011-11-12 15:16                     ` Rego, P.
2011-11-12 15:30                   ` Rego, P.
2011-11-12 16:28                     ` Dmitry A. Kazakov
2011-11-12 17:41                       ` Rego, P.
2011-11-10  8:33                 ` Simon Wright
2011-11-10  9:01                 ` Georg Bauhaus
2011-11-10  9:09                   ` Georg Bauhaus
2011-11-10 18:16                 ` Jeffrey Carter
2011-11-10 19:39                   ` Dmitry A. Kazakov
2011-11-09  9:00             ` Simon Wright
2011-11-10  3:54               ` Rego, P.
2011-10-07  0:08 ` Shark8
replies disabled

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