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.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM, FREEMAIL_REPLYTO_END_DIGIT,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,1cf653444208df72 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-03 21:49:35 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!195.54.122.107!newsfeed1.bredband.com!bredband!newsfeed.sovam.com!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail From: Pi Subject: Re: ada vs. cpp Newsgroups: comp.lang.ada Reply-To: pi3_1415926536@yahoo.ca References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8Bit User-Agent: KNode/0.3.2 Message-ID: Date: Thu, 4 Oct 2001 01:08:42 -0400 NNTP-Posting-Host: 65.92.161.237 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1002170969 65.92.161.237 (Thu, 04 Oct 2001 00:49:29 EDT) NNTP-Posting-Date: Thu, 04 Oct 2001 00:49:29 EDT Organization: Bell Sympatico Xref: archiver1.google.com comp.lang.ada:13703 Date: 2001-10-04T01:08:42-04:00 List-Id: Ralph M�ritz wrote : > Preben Randhol wrote in > news:slrn9rn660.uu.randhol+abuse@kiuk0156.chembio.ntnu.no: > > > On 3 Oct 2001 20:42:29 GMT, Ralph M�ritz wrote: > >> Greetings, > >> > > > > > > > Please tell a bit about your project. > > > > Preben Randhol > > > > It's a text-based (roguelike) rpg, I haven't yet gotten far but it's going > to be big! Uses objects (thus cpp instead C) to eliminate much repetitive > code for stats storage and access. A header file for each component > (dungeon.cpp --> dungeon.h etc.) Hmm, Objects ... 1st : Ada will help you find more bugs at compile time than C++ So your developpement time tends to be faster. But consider that interactions with the OS are more difficult. Not much more, but slightly. Remember that Ada is at his very best if you give him few input, billions of calculations on numbers and than few output. You say that it's text-based. Do you have to parse the text-input? In this case I would consider using Perl[1] for the parsing and than the actual treatement in Ada. (Strings aren't Ada's strength) 2nd : Objects : as long as you dont need special features you're fine with Ada. Just consider a package like an object and you're cool. 3rd : Heritage Hmm, package heritage is ok, tagged types work too 4th : Polymorphism Argh, only possible with tagged type and true crap, so stick with C++ Or you can try to hand-code it, but it's far less flexible and error-prone. But IMNSHO still better than Ada's tagged type variant. 5th : Multiple Heritage Not possible with Ada. [1] Perl is your worst nightmare for big project, but the best language for text parsing out there, so if you use it, use it *only* for the parsing. -- 3,14159265359 who suffered Ada's "polymorphism" at university