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, MSGID_RANDY 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: Ted Dennison Subject: Re: ada writing guide Date: 2000/04/12 Message-ID: <8d1vhj$hdr$1@nnrp1.deja.com>#1/1 X-Deja-AN: 610149021 References: <8d1rso$bir$2@bunyip.cc.uq.edu.au> X-Http-Proxy: 1.0 x41.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Wed Apr 12 14:00:27 2000 GMT X-MyDeja-Info: XMYDJUIDtedennison Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.7 [en] (WinNT; I) Date: 2000-04-12T00:00:00+00:00 List-Id: 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.