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-Language: ENGLISH,ASCII X-Google-Thread: 103376,43ff490aee692a6a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-02 03:37:13 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!128.39.3.168!uninett.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: ASCL project on AdaPower.net Date: Sun, 2 Dec 2001 11:37:13 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: <9ucgi0$7g2i6$1@ID-25716.news.dfncis.de> NNTP-Posting-Host: kiuk0156.chembio.ntnu.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: tyfon.itea.ntnu.no 1007293033 7872 129.241.83.82 (2 Dec 2001 11:37:13 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Sun, 2 Dec 2001 11:37:13 +0000 (UTC) User-Agent: slrn/0.9.7.3 (Linux) Xref: archiver1.google.com comp.lang.ada:17299 Date: 2001-12-02T11:37:13+00:00 List-Id: On 02 Dec 2001 11:53:49 +0100, Pascal Obry wrote: > Or (RM style) > > function Cursor_Index (Source : in Bounded_List; > Cursor : in Cursor_Number := 1; > Facing : in Direction := Forward) > return Natural; I would say I like this style most (hmm I'll start using it myself too) as it is easy to see what the function returns and which arguments are needed in just a quick glance. > Or more GNATish style: > > function Cursor_Index > (Source : in Bounded_List; > Cursor : in Cursor_Number := 1; > Facing : in Direction := Forward) > return Natural; I don't like this much as it is harder or read fast. Preben -- �For me, Ada95 puts back the joy in programming.�