comp.lang.ada
 help / color / mirror / Atom feed
From: Keith Thompson <kst-u@mib.org>
Subject: Re: Learning Ada but missing the basics?
Date: 30 Jun 2008 13:19:55 -0700
Date: 2008-06-30T13:19:55-07:00	[thread overview]
Message-ID: <lziqvq1xqs.fsf@stalkings.ghoti.net> (raw)
In-Reply-To: 85e95c57-07c3-42eb-b9b9-eac5fd3d0d65@i76g2000hsf.googlegroups.com

ryan k <ryan@ryankaskel.com> 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  <http://www.ghoti.net/~kst>
Nokia
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"



  reply	other threads:[~2008-06-30 20:19 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-30 19:01 Learning Ada but missing the basics? ryan k
2008-06-30 20:19 ` Keith Thompson [this message]
2008-06-30 20:38   ` ryan k
2008-06-30 21:18     ` mockturtle
2008-06-30 21:48 ` Jeffrey R. Carter
2008-07-01  1:15   ` ryan k
2008-07-01  2:56     ` Tero Koskinen
2008-07-01  3:13     ` Jeffrey R. Carter
2008-07-02  3:02     ` DScott
2008-07-02  9:18     ` Pascal Obry
2008-07-02 15:54       ` Alex R. Mosteo
2008-07-02 17:17         ` Georg Bauhaus
2008-07-03  8:09           ` Alex R. Mosteo
2008-07-04 17:08         ` Simon Wright
2008-07-04 17:39           ` Pascal Obry
2008-07-08  8:23           ` Alex R. Mosteo
2008-07-08  9:47             ` Jean-Pierre Rosen
2008-07-02 17:47     ` Gautier
2008-07-01 20:51 ` John McCormick
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox