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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b0d569080889afd6 X-Google-Attributes: gid103376,public From: Hyman Rosen Subject: Re: A question for my personal knowledge. Date: 1999/05/18 Message-ID: #1/1 X-Deja-AN: 478860261 Sender: hymie@calumny.jyacc.com References: <1VEZ2.1515$I51.88140@carnaval.risq.qc.ca> <37372A84.641F2133@bigfoot.com> <7h8oe8$2js$1@cf01.edf.fr> <37382B0C.A95B6745@bigfoot.com> <7h9o21$9v4$1@nnrp1.deja.com> <7h9pei$aut$1@nnrp1.deja.com> <373AC668.4824FF07@decada.enet.dec.com> <7hfctj$1kb4@drn.newsguy.com> <7hqcni$p8r@sjx-ixn1.ix.netcom.com> <7hsh9g$rjp@sjx-ixn4.ix.netcom.com> X-Complaints-To: abuse@panix.com X-Trace: news.panix.com 927063936 7286 209.49.126.226 (18 May 1999 21:45:36 GMT) Organization: PANIX Public Access Internet and UNIX, NYC NNTP-Posting-Date: 18 May 1999 21:45:36 GMT Newsgroups: comp.lang.ada Date: 1999-05-18T21:45:36+00:00 List-Id: Richard D Riehle writes: > The question is when to create your own instead of accepting the > default created by the compiler. The answer to this question is > often non-trivial. ... > In Ada, a creation of an object is a simple declaration. ... > I wonder if the closing words of your reply, "I imagine," suggest > that further study of Ada would illuminate some of the points better > than I could do in this brief space. ... > As to comparing the languages, such comparisons are nearly always > fruitless. But you started it! You said that to the uninformed, C++ looks simpler than Ada, but that with deeper understanding, the opposite becomes apparent. I invited you to show me some code which demonstrates this. I don't know Ada, and I don't feel like learning it right now, but I think I could follow an example you post. So show me an object which requires a constructor and user-defined assignment operator in C++, but only a simple declaration and no such operator in Ada. Or if I misunderstood, just show me *something* where Ada's object model lets you do away with things that C++ requires.