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-7-bit X-Google-Thread: 103376,d5cbc012ac099061 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-19 20:15:56 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!sjc1.nntp.concentric.net!newsfeed.concentric.net!newsfeed1.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread2.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3B0736E2.6F781D7D@acm.org> From: Jeffrey Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Non-Stub In Inner Scope? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sun, 20 May 2001 03:15:58 GMT NNTP-Posting-Host: 209.86.209.82 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 990328558 209.86.209.82 (Sat, 19 May 2001 20:15:58 PDT) NNTP-Posting-Date: Sat, 19 May 2001 20:15:58 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net X-Received-Date: Sat, 19 May 2001 20:14:11 PDT (newsmaster1.prod.itd.earthlink.net) Xref: archiver1.google.com comp.lang.ada:7656 Date: 2001-05-20T03:15:58+00:00 List-Id: Dr Nancy's Sweetie wrote: > > I see two obvious solutions: > > 1) The C-style solution, which is to move the stub into the package spec, > and thus have it accessable by every part of the package. I don't > like this because one reason to use Ada is that you can have local > functions. > > 2) The Pascal-style solution, which is to cram the whole function (and > it's really long, and there are several of them) into the declaration > section of the Put_Line() procedure. I don't like this one, because > because it means that between the line "procedure Put_Line(...) is" > and the associated "begin", I would have almost 500 lines of code. 3) Make Put_Line separate, then make Wont_Work separate from it. -- Jeff Carter "Nobody expects the Spanish Inquisition!" Monty Python's Flying Circus