From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff6c8,12f4d07c572005e3 X-Google-Attributes: gidff6c8,public X-Google-Thread: f43e6,12f4d07c572005e3 X-Google-Attributes: gidf43e6,public X-Google-Thread: 1108a1,12f4d07c572005e3 X-Google-Attributes: gid1108a1,public X-Google-Thread: 10db24,12f4d07c572005e3 X-Google-Attributes: gid10db24,public X-Google-Thread: 103376,12f4d07c572005e3 X-Google-Attributes: gid103376,public From: ncohen@watson.ibm.com (Norman H. Cohen) Subject: Re: Java Risks (Was: Ada News Brief - 96-05-24 Date: 1996/06/03 Message-ID: <4ov36b$1665@watnews1.watson.ibm.com>#1/1 X-Deja-AN: 158241972 distribution: world references: <4o56db$p66@ns1.sw-eng.falls-church.va.us> organization: IBM T.J. Watson Research Center reply-to: ncohen@watson.ibm.com newsgroups: comp.lang.ada,comp.sw.components,comp.object,comp.software-eng,comp.edu Date: 1996-06-03T00:00:00+00:00 List-Id: In article , Richard Riehle 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. } -- Norman H. Cohen ncohen@watson.ibm.com