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,24d7acf9b853aac8 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!news2.glorb.com!news.mv.net!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: S-expression I/O in Ada Date: Sun, 29 Aug 2010 09:23:00 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <547afa6b-731e-475f-a7f2-eaefefb25861@k8g2000prh.googlegroups.com> <4c77d250$0$7653$9b4e6d93@newsspool1.arcor-online.net> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1283088165 8286 192.74.137.71 (29 Aug 2010 13:22:45 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sun, 29 Aug 2010 13:22:45 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:8UOkFByq/8eLKaS4U5gaNWnRdQk= Xref: g2news1.google.com comp.lang.ada:13803 Date: 2010-08-29T09:23:00-04:00 List-Id: Natasha Kerensikova writes: >...But this raises the question, what is the rationale for > excluding some warning from -gnatwa? They would generate too much noise for too many people. But feel free to turn them on, and see if you like them. > By the way, about style issues, do you all here really use the > "standard" (or so it seems to me) indentation of 3 spaces for new blocs > and 2 spaces for line continuations? This is the AdaCore standard, not any official Ada standard. I prefer 4 spaces, but since I work for AdaCore, of course I use the AdaCore coding conventions. > I find compiler issues to be the weakest point of Ada: documentation is > pretty well hidden, ... Heh? Have you read the GNAT User's Guide, and the GNAT Reference Manual? They should be under some 'doc' directory in your GNAT installation. Or a quick google sends me to: http://gcc.gnu.org/onlinedocs/index.html#dir How are these "well hidden"? > function Root(From : in Container) return Cursor is > begin > return Cursor'(Parent => null, Node => From.Root); > end Root; Nothing wrong with that. I would probably write "return (Parent => null, Node => From.Root);" in this case, because the type is obvious by looking just two lines previous. But if you want to emphasize the type of an expression, you can always qualify it as you did. - Bob