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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,791530e499e6a7f9 X-Google-Attributes: gid103376,public From: "Riyaz Mansoor" Subject: Re: ada writing guide Date: 2000/04/13 Message-ID: <8d41os$3jn$1@bunyip.cc.uq.edu.au>#1/1 X-Deja-AN: 610581780 References: <8d1rso$bir$2@bunyip.cc.uq.edu.au> <8d1vhj$hdr$1@nnrp1.deja.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Complaints-To: news@uq.edu.au X-Trace: bunyip.cc.uq.edu.au 955615836 3703 172.20.69.157 (13 Apr 2000 08:50:36 GMT) Organization: University of Queensland X-MSMail-Priority: Normal NNTP-Posting-Date: 13 Apr 2000 08:50:36 GMT Newsgroups: comp.lang.ada Date: 2000-04-13T08:50:36+00:00 List-Id: link does not seem to be working ted. "Ted Dennison" wrote in message news:8d1vhj$hdr$1@nnrp1.deja.com... > In article <8d1rso$bir$2@bunyip.cc.uq.edu.au>, > "Riyaz Mansoor" wrote: > > > > i was wondering where i can get/find ada code conventions? i know C > > has a standard. > > Try the Ada Quality and Style Guide, at > http://wuarchive.wustl.edu/languages/ada/ajpo/docs/style-guide/95style/h > tml/cover.html > > It is mean to be tailored to match site-specific guidlines, but it still > should give you a good idea of what is typical usage. > > > like for example what is the "standard" way to write a procedure > > declaration. > > > > procedure (D : in out Data; C : in Cata); > > procedure > > (D : in out Data; > > C : in Cata); > > You forgot the procedure's name. ;-) I prefer: > procedure Foo > (D : in out Data; > C : in Data > ); > > but some prefer > procedure Foo (D : in out Data; > C : in Data); > > I prefer the former because the parameters start in a standard place, > and won't get squeezed for space if the procedure name is long. Also, > its easier to see that the parens match. It does use up more vertical > real-estate, though (in this case, twice as much). > > -- > T.E.D. > > http://www.telepath.com/~dennison/Ted/TED.html > > > Sent via Deja.com http://www.deja.com/ > Before you buy.