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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1cf653444208df72 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-04 05:31:26 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!wn4feed!worldnet.att.net!135.173.83.71!wnfilter1!worldnet-localpost!bgtnsc06-news.ops.worldnet.att.net.POSTED!not-for-mail Message-ID: <3BBC54B7.D668FCD0@worldnet.att.net> From: James Rogers X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: ada vs. cpp References: <9pgu0l01687@drn.newsguy.com> <4XUu7.18551$4l5.2541822@news20.bellglobal.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 04 Oct 2001 12:22:57 GMT NNTP-Posting-Host: 12.86.32.151 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc06-news.ops.worldnet.att.net 1002198177 12.86.32.151 (Thu, 04 Oct 2001 12:22:57 GMT) NNTP-Posting-Date: Thu, 04 Oct 2001 12:22:57 GMT Organization: AT&T Worldnet Xref: archiver1.google.com comp.lang.ada:13714 Date: 2001-10-04T12:22:57+00:00 List-Id: Pi wrote: > > > IIRC you have to specify the headers (but *only* the headers) > of all method that you want to use polymorph *directly* after > the declaration of the tagged type. > > And this is poorly documented and the compiler warnings are of > no much help either. Poor compiler messages? That is not my experience. Of course, messages are not part of the language definition. Each compiler develops its own set of error and warning messages. The Aonix compiler generates very useful messages, ususally with references to the corresponding section of the language reference manual. The GNAT compiler generates truly brilliant error messages. For instance, if you mistype the keyword "while" it will tell you "Line XX col YY : Keyword while misspelled", where XX is the line number and YY is the column number of the beginning of the detected error. > > He asked if he should port his project from cpp to Ada. > What do I know if he uses MI? He may use MI. That is not impossible to convert to Ada. > if you want an enumeration type you shouldn't use Java. > An enumeration type is not an OO-Concept and therefor isn't included. > > Beside, as you have to write it yourself you can also > make it more powerful. (Enumeration of objects?) > > But, I admit, I missed enumerations in Java ... Integers are not an OO-concept, but they are included in Java. Sets can be nicely expressed as an OO-concept, but they are not included in Java. My point is that Java's design strongly encourages the use of OO concepts, but neither requires them, nor does it provide a completely inclusive definition of OO tools and concepts. Jim Rogers Colorado Springs, Colorado USA