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!newsgate.cuhk.edu.hk!news.netfront.net!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: S-expression I/O in Ada Date: Sun, 29 Aug 2010 06:56:25 -0700 Organization: Netfront http://www.netfront.net/ Message-ID: References: <547afa6b-731e-475f-a7f2-eaefefb25861@k8g2000prh.googlegroups.com> <4c77d250$0$7653$9b4e6d93@newsspool1.arcor-online.net> NNTP-Posting-Host: 69.37.95.130 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: adenine.netfront.net 1283090198 53885 69.37.95.130 (29 Aug 2010 13:56:38 GMT) X-Complaints-To: news@netfront.net NNTP-Posting-Date: Sun, 29 Aug 2010 13:56:38 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6 In-Reply-To: Xref: g2news1.google.com comp.lang.ada:13805 Date: 2010-08-29T06:56:25-07:00 List-Id: On 08/29/2010 03:45 AM, Natasha Kerensikova wrote: > > 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 still way too shallow for my > tastes. I indent 3, with the convention that an indentation level = a nesting level. I indent continuation lines based on the context. > I find compiler issues to be the weakest point of Ada: documentation is > pretty well hidden, installation is a mess, and there is that > project-file stuff which seems almost as complicated as Ada language > itself, while being compiler-dependant. Coming for a C world where > everything is simpler and well documented in manual pages... Make files are simple? I still don't understand them completely ... > function Root(From : in Container) return Cursor is > begin > return Cursor'(Parent => null, Node => From.Root); > end Root; This is what I do. Some prefer the other way so they have a name to look at in the debugger, but since I haven't used a debugger in years that's not an issue fort me. -- Jeff Carter "We call your door-opening request a silly thing." Monty Python & the Holy Grail 17 --- news://freenews.netfront.net/ - complaints: news@netfront.net ---