comp.lang.ada
 help / color / mirror / Atom feed
From: Richard Riehle <rriehle@nunic.nu.edu>
To: "Norman H. Cohen" <ncohen@watson.ibm.com>
Subject: Re: Java Risks  (Was: Ada News Brief - 96-05-24
Date: 1996/06/04
Date: 1996-06-04T00:00:00+00:00	[thread overview]
Message-ID: <Pine.GSO.3.92.960604155403.19912B-100000@nunic.nu.edu> (raw)
In-Reply-To: 4omoh4$k0f@ansible.bbt.com <4ov36b$1665@watnews1.watson.ibm.com



Norman,

As you know, I am no advocate of the virtues of C++. However, I do
believe that, if one needed to extend C into a OOP language, the
decision taken by Stroustrop was, if not brilliant (I do tend to
hyperbole sometimes), at least intelligent.

The fact that it can lead to kind of absurdities illustrated in your
response, does not diminish the intelligence of the idea.  It simply
shows that there are ways to corrupt it through misuse. My position
vis a vis C++ has been that it is not well-suited to the development of
software that must work with consistent reliabilty.  And you have shown
an example to support that view.  It is unfortunate that C++ is so
vulnerable to exposure from such examples.  And it gets worse as new
features are added.  In particular, the exception handling in C++ is
a rather sad sight to behold.

On 3 Jun 1996, Norman H. Cohen wrote:

> In article <Pine.GSO.3.92.960602134300.12386C-100000@nunic.nu.edu>,
> Richard Riehle <rriehle@nunic.nu.edu> writes:
>
> |>    There are aspects of C++ that, as orginally  conceived by Dr.
> |>    Stroustrup, make very good sense.  The fundamental idea of
> |>    expanding the stuct into a class was a stroke of brilliance.
>
> I disagree.  It is the confusion of classes and structs (along with the
> confusion of class-as-type-definition and class-as-module) that leads to
> absurdities such as the following:
>
>    class C {
>       protected:
>          typedef ... T;
>          static T x;  // perfectly legal
>          struct S {
>             T x;      // illegal: protected "member" T inaccessible inside
>          } y;         //    a struct, despite nesting.
>    }

  OK, so my langauge is a little exagerrated sometimes.  I do think it was
  kind of a smart idea, even though it does lend itself to the kind of
  corrupt thinking illustrated in this example. In all honesty, very few
  C++ programmers would design a class with such an obviously ugly
  profile.

  All in all, thanks for a rather amusing example, though.

  Richard Riehle





  parent reply	other threads:[~1996-06-04  0:00 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-05-24  0:00 Ada News Brief - 96-05-24.txt [1/1] AdaIC
1996-05-27  0:00 ` Tucker Taft
1996-05-28  0:00   ` Richard Riehle
1996-05-29  0:00     ` Andreas Zeller
1996-05-30  0:00       ` Robert Dewar
1996-06-01  0:00         ` AdaWorks
1996-06-01  0:00           ` Robert Dewar
1996-06-01  0:00         ` AdaWorks
1996-06-01  0:00           ` Robert Dewar
1996-06-01  0:00             ` Mike Young
1996-06-03  0:00               ` Robert Dewar
1996-06-04  0:00             ` Richard Riehle
1996-05-30  0:00       ` Java Risks (Was: Ada News Brief - 96-05-24 Richard Riehle
1996-05-31  0:00         ` Java Risks (should be Java mis-speak) The Right Reverend Colin James III
1996-06-02  0:00           ` Richard Riehle
1996-06-03  0:00             ` Tucker Taft
1996-05-31  0:00         ` Java Risks (Was: Ada News Brief - 96-05-24 Brian N. Miller
1996-06-02  0:00           ` Richard Riehle
1996-06-03  0:00           ` Ken Garlington
1996-06-04  0:00             ` Bill Brooks
1996-06-06  0:00               ` Bjarne Stroustrup <9758-26353> 0112760
1996-06-06  0:00                 ` Robert Dewar
     [not found]         ` <4omoh4$k0f@ansible.bbt.com <4ov36b$1665@watnews1.watson.ibm.com>
1996-06-04  0:00           ` Richard Riehle [this message]
1996-05-27  0:00 ` Ada News Brief - 96-05-24.txt [1/1] Brian Rogoff
1996-05-31  0:00 ` Java Risks (Was: Ada News Brief - 96-05-24 Jon S Anthony
1996-06-01  0:00   ` Java Risks David Hopwood
1996-06-02  0:00   ` Java Risks (Was: Ada News Brief - 96-05-24 Richard Riehle
1996-06-01  0:00 ` Bob Crispen
1996-06-05  0:00   ` Alan Brain
1996-06-03  0:00 ` Norman H. Cohen
1996-06-03  0:00   ` Imonics Corporation
1996-06-07  0:00   ` Peter Wentworth
1996-06-05  0:00 ` Norman H. Cohen
1996-06-05  0:00   ` Bill Brennamw
1996-06-08  0:00   ` Brian N. Miller
1996-06-09  0:00 ` Jim Kingdon
  -- strict thread matches above, loose matches on Subject: below --
1996-06-03  0:00 Jon S Anthony
replies disabled

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