comp.lang.ada
 help / color / mirror / Atom feed
From: Pascal Obry <p.obry@wanadoo.fr>
Subject: Re: ASCL project on AdaPower.net
Date: 02 Dec 2001 11:53:49 +0100
Date: 2001-12-02T10:56:11+00:00	[thread overview]
Message-ID: <uvgfpc2pu.fsf@wanadoo.fr> (raw)
In-Reply-To: 9ucgi0$7g2i6$1@ID-25716.news.dfncis.de


Just a style note. I think that the ASCL sources should follow somehow the
convention used in the RM. Or maybe the GNAT style enforced by -gnaty.

For example I would change:

   function Cursor_Index (
         Source : in     Bounded_List;            
         Cursor : in     Cursor_Number := 1;      
         Facing : in     Direction     := Forward ) 
     return Natural; 

To (RM / GNAT style)

   function Cursor_Index
     (Source : in Bounded_List;            
      Cursor : in Cursor_Number := 1;      
      Facing : in Direction     := Forward)
     return Natural; 

Or (RM style)

   function Cursor_Index (Source : in Bounded_List;            
                          Cursor : in Cursor_Number := 1;      
                          Facing : in Direction     := Forward)
     return Natural; 

Or more GNATish style:

   function Cursor_Index
     (Source : in Bounded_List;            
      Cursor : in Cursor_Number := 1;      
      Facing : in Direction     := Forward) 
      return      Natural; 

Just my 2cents,
Pascal.


-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|         http://perso.wanadoo.fr/pascal.obry
--|
--| "The best way to travel is by means of imagination"



  reply	other threads:[~2001-12-02 10:53 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-02  5:56 ASCL project on AdaPower.net Nick Roberts
2001-12-02 10:53 ` Pascal Obry [this message]
2001-12-02 11:37   ` Preben Randhol
2001-12-02 12:23     ` Preben Randhol
2001-12-02 17:55 ` Jeffrey Carter
2001-12-03 21:23   ` Nick Roberts
2001-12-04  2:39     ` Jeffrey Carter
2001-12-06 17:56       ` Nick Roberts
2001-12-03 14:56 ` Ted Dennison
2001-12-03 16:54   ` Larry Kilgallen
2001-12-03 18:59     ` Ted Dennison
2001-12-03 21:27   ` Nick Roberts
2001-12-10 16:12   ` Marin David Condic
2001-12-03 15:49 ` Ted Dennison
2001-12-03 22:29   ` Jeffrey Carter
2001-12-04 14:50     ` Ted Dennison
2001-12-04 16:01       ` Jeffrey Carter
2001-12-04 17:20         ` Ted Dennison
2001-12-04 20:43       ` Stephen Leake
2001-12-04 20:41   ` Stephen Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox