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-Thread: 103376,e859f774bbb3dfb3 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!news.motzarella.org!motzarella.org!not-for-mail From: "Colin Paul Gloster" Newsgroups: comp.lang.ada Subject: Re: another way to shoot yourself in the foot? Date: Fri, 4 Jul 2008 21:52:30 +0100 Organization: A noiseless patient Spider Message-ID: References: <54157920-377a-441b-9b0b-f0c4f9ddffec@f36g2000hsa.googlegroups.com> <54435596-5e7f-4686-a2b7-1e22d7c4b186@p25g2000hsf.googlegroups.com> X-Trace: reader.motzarella.org U2FsdGVkX1/cEaDnAfuP7fUFJHfDeFxLjkBBaofKpvTQ5sjvXv1PWhtpMyC7TRO6hEhTGnYGYJtiVPuFdRwUsq6wbBKPZu8IJB0Ql20+VxITKD0F1N4hCDqZrIelJp3hGhP+X7g1Te8FmwQkL4j/uw== X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers NNTP-Posting-Date: Fri, 4 Jul 2008 20:51:23 +0000 (UTC) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 X-RFC2646: Format=Flowed; Response X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 X-Auth-Sender: U2FsdGVkX1+MmdFSNoXAB1DXvl5jJ76vWG32rtbJ1BAKaK6TZ/+A7EyoV+Gs0R28j4TYQWEYato= Cancel-Lock: sha1:s2DG81Qtns8sNVkuu4IMYilAdyo= X-Priority: 3 X-MSMail-Priority: Normal Xref: g2news1.google.com comp.lang.ada:1009 Date: 2008-07-04T21:52:30+01:00 List-Id: Jeffrey R. Carter wrote in message news:brz7k.167222$TT4.46081@attbi_s22 ... |------------------------------------------------------------------------------| |" Robert A Duff wrote: | |[..] | | | |> As Dmitry pointed out, with this idea, there's no need for the "return | |> Result;". | | | | True, but I find it easier to understand the function if it has the explicit | | "return Result;"," | |------------------------------------------------------------------------------| I believe that "return Result;" is fine. It is true that it is not necessary, in much the same way that IN is redundant for a function's mode. Some people had criticized IN for a function for the same reason, but people who use many languages (or instead, who do not program much) should not be forced to memorize all the ramifications of particular language semantics if a piece of excess syntax makes it clear for them. |------------------------------------------------------------------------------| |" even though I came to Ada from a Pascal background." | |------------------------------------------------------------------------------| Speaking of which, after my unsuccessful job application to you earlier this year (thank you for having the decency to treat my application properly though, as did other some contributors to this newsgroup when I applied to them, but unfortunately a number of others were disrespectful) I very recently joined a group of people who on average do not work predominantly as programmers. The languages which I have been told are in some of their backgrounds are FORTRAN and C++, and we have FORTRAN and C++ codebases which I should improve. How better to start than by porting to Ada!? In a room I share with some of them there are some FORTRAN books, but there are also many Pascal books so maybe someone based here is familiar with Pascal (but not everyone who programs and uses this room is involved in the smae project, so I must check). I plan to glance at some of these books and maybe eventually read them to determine which would be worthwhile to help colleagues learn enough Ada (I do not need them to acquire an advanced level of skill with Ada). I could use K.N. King's "Dr. Dobb's Journal" article "Ada for Pascal Programmers", WWW.DDJ.com/architect/184407995 , but if you have any tips they may be helpful. Available books include: Jensen and Wirth, "Pascal: User Manual and Report", third edition; Ledgard, "Professional Pascal: Essays on the Practice of Programming"; McGregor and Watt, "Pascal for Science and Engineering"; Ledgard with Tauer, "Pascal with Excellence: Programming Proverbs"; "Turbo Pascal for the Mac: User's Guide and Reference Manual"; Savitch, "Pascal: An Introduction for the Art and Science of Programming"; many Pascal books which can be found by searching on HTTP://WebOPAC.SIB.UC.Pt/ including one by Dr. Findlay who has become a critic of Pascal and who did not have the decency it seems to dignify my application to him with a response (but at least that was better than some of the abuse I received by email from other contributors to this newsgroup); and a small collection of Ada books (at least one of which I have read and is very good despite predating Ada 83) so I list ones which I have not read: Autor Berge, J.-M. Tulo ADA avec le sourire / J.-M. Berge. Publicao/Produo Paris : Presses Polytechniques Romandes, 1989. Descrio fica 400 p. SISBN 2880741645 Outro autor Olive, L.-O. Donzelle V, autor. Rouillard, J, autor. (yes, someone in the group has studied French); and Autor Gehani, Narain. Tulo Ada : an advanced introduction / Narain Gehani. Publicao/Produo Englewood Cliffs : Prentice-Hall, cop. 1983. Descri-o fica XVII, 327 p : il. SISBN 0130039624 Assunto Linguagem ADA. Regards, Colin Paul Gloster