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-Thread: 103376,6bee08c26af9486d X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!news.mixmin.net!aioe.org!not-for-mail From: Keith Thompson Newsgroups: comp.lang.ada Subject: Re: Learning Ada but missing the basics? Date: 30 Jun 2008 13:19:55 -0700 Organization: Aioe.org NNTP Server Message-ID: References: <85e95c57-07c3-42eb-b9b9-eac5fd3d0d65@i76g2000hsf.googlegroups.com> NNTP-Posting-Host: udTJGbGWl+bx22XXwco3hA.user.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 Xref: g2news1.google.com comp.lang.ada:965 Date: 2008-06-30T13:19:55-07:00 List-Id: ryan k writes: > I'm trying to learn Ada because a) I think it's cool to learn new > computer languages and b) it looks like a good one. I've gone the > through a lot of the tutorials but lets say have package MyPackage and > 5 subprograms are in the body. Which procedure is run first? Is it > sequential? None of them will run unless they're called. > Is there some sort of equivalent to C's main()? Not exactly. There's no special name for the entry point. You specify it when you link the program. > Is a > binary created for every package? That depends on what you mean by "a binary". There typically won't be an executable created for each package. An Ada package is similar in some ways to a separately compiled C source file; you can combine several of them, along with a procedure that's specified to be the main program, into a single program. The details of how you do this are defined by each implementation, not by the language. > I guess I don't understand where > things start and end. Any help or links are greatly appreciated! -- Keith Thompson (The_Other_Keith) kst-u@mib.org Nokia "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"