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=2.2 required=5.0 tests=BAYES_00,FROM_WORDY, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d927b7ea9b65580a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-09 08:17:01 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!feed2.news.rcn.net!feed1.news.rcn.net!rcn!not-for-mail From: "Frank J. Lhota" Newsgroups: comp.lang.ada Subject: Re: Style: always declare subrountines? Date: Sat, 9 Nov 2002 11:16:53 -0500 Message-ID: References: <3dccc023$0$304$bed64819@news.gradwell.net> Reply-To: "Frank J. Lhota" X-Trace: UmFuZG9tSVazblV7DTO8vmdaRgbR4Q3HT2ZSyidJ2YDA1psbEQ3sl/dYxl3pStUX X-Complaints-To: abuse@rcn.com NNTP-Posting-Date: 9 Nov 2002 16:16:40 GMT X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Priority: 3 X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MSMail-Priority: Normal Xref: archiver1.google.com comp.lang.ada:30655 Date: 2002-11-09T16:16:40+00:00 List-Id: As a general rule, I always make separate specifications and bodies for subprograms, even if they are local to a library unit. Doing this makes it very clear which subprograms are local and which a global. Moreover, I group the subprogram specifications near the beginning of a package body. This eliminates any concern over the ordering of the subprogram bodies.