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.8 required=5.0 tests=BAYES_00,FREEMAIL_FROM, PLING_QUERY autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,2f6e39a9d25bcd8b,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Jinsong Zhao Newsgroups: comp.lang.ada Subject: how to organize source code for a complete software? Thanks! Date: Mon, 10 Oct 2011 00:20:53 +0800 Organization: A noiseless patient Spider Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 9 Oct 2011 16:21:11 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="PqdJJEzZU0h8jHT4i5iw2w"; logging-data="17583"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX182TFRkWEQE9NGKAdafolvt" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 Cancel-Lock: sha1:j6tSFwPftV7M4Cn7eCFqxdVAL1c= Xref: g2news2.google.com comp.lang.ada:22308 Date: 2011-10-10T00:20:53+08:00 List-Id: Hi there, I am new to Ada, and I just have some experiences in using Fortran. When using Fortran, I generally put each subroutine or function in a separate file, e.g., dot.for for dot product of two vectors. Then a main.for that call the necessary subroutine or functions. It seems to be rational. When I using Ada, I don't know how to do. There are procedure, function, package, package body, and so on (with different file extension, e.g., ada, adb, ads, ...). And there is no main program. Would anyone here like to give a an analogy between the source code organization in Fortran and the one in Ada? And, please, if you like, point me a small, complete open source software in Ada (not a library or package). I should be compiled and run. I just hope to learn how to start a software in Ada by example. Any suggestions or comments will be really appreciated. Thanks in advance. Regards, Jinsong