comp.lang.ada
 help / color / mirror / Atom feed
From: And838N@netscape.net
To: comp.lang.ada@ada.eu.org
Subject: Visibility and Elaboration
Date: Tue, 10 Jun 2003 04:33:12 -0400
Date: 2003-06-10T04:33:12-04:00	[thread overview]
Message-ID: <mailman.17.1055234030.1173.comp.lang.ada@ada.eu.org> (raw)

> David C. Hoos, Sr. wrote:
>The compiler did _not_ complain when the unneeded "with" of 
>Ada.Text_IO was removed.
Huh, that's interesting. �adagcc says that "put" is undefined and that
the is possibly a missing with of Text_IO, therefore, for me, it is
a necessity. �Let's move on.

In the b~newelaborations.adb file I don't see any mention of an
'Elab_<anything> for the elo package. �Regardless, I'm not real
concerned about that aspect. �My concern is learning what happens
differently in an elaboration verses what happens by using the "new"
reserved word. �If I define a package such as elo outside the
newelaboration procedure and "with" and "use" it then it is only 
elaborated once.

I can still create new elos by using the "new" reserved word. �My
question is how is this different? �The elo "objects" (I don't even 
know if they are objects) that were created using "new" should all have 
their own copy of the data (value) and the printvalue procedure (by 
some means) like the elaborations would have in the 
newelabroations doelaborations subprocedure.

The way it is now, each time the doelaborations subprocedure is called 
the elo package is elaborated (before the actual call) and, like using 
"new", each one has their own copy of value and printvalue. �Is the 
only difference their scope and lifetime? �

Andrew






__________________________________________________________________
McAfee VirusScan Online from the Netscape Network.
Comprehensive protection for your entire computer. Get your free trial today!
http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397

Get AOL Instant Messenger 5.1 free of charge.  Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455



             reply	other threads:[~2003-06-10  8:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-10  8:33 And838N [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-06-11 10:40 Visibility and Elaboration And838N
     [not found] <7BD8CDF4.671052CE.0015D3EC@netscape.net>
2003-06-09 11:35 ` David C. Hoos, Sr.
2003-06-09 18:14   ` Robert I. Eachus
2003-06-09 18:29     ` tmoran
2003-06-11  6:50       ` Robert I. Eachus
2003-06-11  7:49         ` tmoran
2003-06-11 21:11           ` Robert I. Eachus
2003-06-09 10:47 And838N
replies disabled

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