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,54c513170bafd693 X-Google-Attributes: gid103376,public From: Ole-Hjalmar Kristensen Subject: Re: Desirability of C++ Date: 2000/05/02 Message-ID: #1/1 X-Deja-AN: 618161964 Sender: ohk@gong2.clustra.com References: <01HW.B4BFC2820005B06B08A24140@news.pacbell.net> <20000204073443.24976.00001288@ng-ci1.aol.com> <87euk0$c93$1@nnrp1.deja.com> <01HW.B4C1346100072D2408A24140@news.pacbell.net> <949867976.281549@the-rowan.albatross.co.nz> <8766v93w66.fsf@deneb.cygnus.argh.org> <38E8C81A.AA62CF4C@HiWAAY.net> <7EA1B852F5D4D8C6.26EEE9181C80F0DF.0161EA2D9C353253@lp.airnews.net> <01HW.B51C1B6E00F41C2D04BB51B0@news.pacbell.net> <38F796B2.A99A206A@ftw.rsc.raytheon.com> <38F7A27A.4F7729FA@raytheon.com> <8eclae$afj$1@slb7.atl.mindspring.net> <4F706057FEE2A550.BF5FE19AE279EFCD.A55706B3F9D07043@lp.airnews.net> <8eiv08$820$1@slb1.atl.mindspring.net> <390D001C.7433140B@netwood.net> <390D58F9.7CC64B85@maths.unine.ch> <390DDA32.BDC215E8@maths.unine.ch> X-Complaints-To: abuse@telia.no X-Trace: news.telia.no 957251475 195.204.160.194 (Tue, 02 May 2000 09:11:15 CEST) Organization: Telia Internet Public Access NNTP-Posting-Date: Tue, 02 May 2000 09:11:15 CEST Newsgroups: comp.lang.ada Date: 2000-05-02T00:00:00+00:00 List-Id: Gautier writes: > Hyman Rosen: > > > What does that mean? C++ functions can return things other than integers > > and pointers, and there is a simple way in C++ to make arrays with bounds > > but no OO bloat. > > Sorry if I'm wrong - maybe it is the over-abundance of C-like sources. You can do it in C as well. Example typedef struct foo{ float re; float im; }foo; foo bar(){ foo foo1; return foo1; } > Is there an online, HTML ISO standard reference ? > For the arrays, I'd really like to see the way you program things like > "procedure Some_algo( A: matrix; x: out vector; b: vector ) is..." > with "A'range(1)" and so on, with possibility of having bound checking on. > No luck with range checking or array bounds, you have to use vector classes to get that. > > While C++ syntax can sometimes be abysmal, I am 100% convinced that the > > main reason for the lack of Ada's popularity is its Pascal-derived syntax. > > Hum... and how do you explain the huge popularity of Turbo/Borland Pascal ? > The lack of Ada's popularity until the past few years (thanks to GNAT) is > rather due to the refrigerating effect of the policy the DoD had - IMHO. > And the fact Ada came too early for the 16-bit, low Mhz personal computer wave. > It was cheap, very fast compile times, IDE, produced reasonable code, and had extensions to standard Pascal which made it useful. The fact that it was Pascal did not matter much, I think. BTW., personally I don't care whether you write {} or BEGIN/END. > About syntax: I think it's rather a question of personal taste and practice. > > Is it worse to have the eye swimming from an ill-formatted over-uppercased > Ada source than from a mass of {&*^++[) spotted among tricky identifiers and > some comments trying to half-hide, half-explain what happens on the left ? > > Simply, there is a great variety of writing styles, in C, Ada,.... There are > Fortran-like Ada sources, Pascal-like C or Fortran sources, and so on... > > _____________________________________________ > Gautier -- http://members.xoom.com/gdemont/ -- E pluribus Unix